我正在 Windows XP 中制作一个批处理文件,以将我需要的文件夹复制到我 PC 上的另一个文件夹中。我收到一个错误。
我收到错误“参数数量无效”。
xcopy /s/z D:\Documents and Settings\%username%\Desktop C:\SomeRandomFolder\
xcopy /s/z D:\Documents and Settings\%username%\Favorites C:\SomeRandomFolder\
xcopy /s/z D:\Documents and Settings\%username%\Start Menu C:\SomeRandomFolder\
xcopy /s/z D:\Documents and Settings\%username%\My Documents C:\SomeRandomFolder\
xcopy /s/z D:\Documents and Settings\%username%\PrintHood C:\SomeRandomFolder\
xcopy /s/z D:\Documents and Settings\%username%\NetHood C:\SomeRandomFolder\
xcopy /s/z D:\Documents and Settings\%username%\Templates C:\SomeRandomFolder\
xcopy /s/z D:\Documents and Settings\%username%\Searches C:\SomeRandomFolder\
xcopy /s/z D:\Documents and Settings\%username%\Local Settings\Application Data\Microsoft\Outlook C:\SomeRandomFolder\
pause
Run Code Online (Sandbox Code Playgroud)
然后我更改了批处理并收到此错误:“找不到文件 - 桌面”
xcopy /s/z D:\...\%username%\Desktop C:\SomeRandomFolder\
pause
Run Code Online (Sandbox Code Playgroud)
如何修复这些错误?