1
我正在設法做的是從特定位置複製文件。問題是xcopy告訴我,我有無效的參數。由於我之前從未做過批處理程序,所以我想問問是否有可能做到這一點?批xcopy無效參數
set _pfadTarget = path\test
set _pfadSourceDesk = c:\Users\xxxx\Desktop
set _pfadSourceDocu = c:\Users\xxxx\Documents
set _propertyDOC = \*.doc
REM -------ALL DOC Files--------
set _FullSourcePath = %_pfadSourceDesk%%_propertyDOC%
set _FullDestPath = %_pfadTarget%%_propertyDOC%
xcopy %_FullSourcePath% %_FullDestPath% /s /y
set _FullSourcePath = %_pfadSourceDocu%%_propertyDOC%
xcopy %_FullSourcePath% %_FullDestPath% /s /y
exit
很好用,謝謝:) – Crusader633