0
嗨,我是新手腳本 我創建此示例腳本來過濾掉日誌文件中的所有時間戳 當我在cmd提示符下手動使用它時,它適用於我,但同樣不起作用一個.bat文件。批處理腳本問題
@ECHO OFF
: ************** Report Tracking in FR *************************************************
: ********** to find keywords relevent Timestamps **************************************
: ****************** From the Log files ************************************************
cd F:\oracle\Middleware\user_projects\domains\EPMSystem\servers\FinancialReporting0\logs
(FOR %G IN (*.log) do (find /i "Name:" "%G"))> out.log
任何想法,以什麼可能丟失我
嗨Stephan, 但改變工作,但現在cmd跳轉到我的腳本所在的目錄,並且不執行cmd (FOR %% G IN(* .log)do(find/i「Name :」 「%% G」))> out.log 在所需的文件夾 F:\ ORACLE \中間件\ user_projects \域\ EPMSystem \服務器\ FinancialReporting0 \日誌 謝謝您的投入! – user3124129
'cd/d「F:\ oracle \ Middleware \ user_projects \ domains \ EPMSystem \ servers \ FinancialReporting0 \ logs」<---試試命令的格式。 – foxidrive
謝謝foxiderive。 @ user3124129如果您對我的回答發表評論,或者您明確寫了「@ Stephan」,我會收到一條消息;如果您對您的問題發表評論,我不會收到消息。 – Stephan