【发布时间】:2014-02-27 07:34:48
【问题描述】:
我正在尝试设计一款软件,需要一个批处理文件来提供帮助。不幸的是它不起作用。它需要将 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
【问题讨论】:
标签: batch-file parameters passwords copy appdata