!每次我運行它它總是這樣說。這就是它說的:批處理文件:該命令的語法是我的批處理文件有問題不正確
the syntax of the command is incorrect.
而這就是其餘的代碼。我試圖做我自己的代碼。就像打開記事本一樣,除了沒有圖形干擾。你們能幫我嗎?
set /p ans= New files or saved file! n or a :
if [%ans%] = [n] (
set /p mkfl= Files you want to save in! [filename].[bat;cmd;txt] :
set /p val= Enter Key to Save!:
echo %val% > %mkfl%
SET /p t= y:
) else if [%ans%] equ [a] (
set /p flnm= Type in the filename!:
set /p val= Type in words!
set /p ans= Enter [s,o] to re-save or overwrite!:
if [%ans%] equ [s] (
ECHO append
) else if [%ans%] equ [o] (
ECHO overwrite
) else (
ECHO problem!
)
SET /p z= f:
) else (
ECHO problem occurred during executing!
SET /p a= p:
)
set /p fk= .
請閱讀'IF'命令的幫助。通過在命令提示符下鍵入批處理文件名打開一個命令提示符,然後再運行批處理文件下一次故障排除。 – Squashman
sry,我是新來的CMD。 – Andrew
非常感謝#Squashman!這幫了我很多! – Andrew