我寫了一些vbscript, 想copy 一些files 到指定的地方, 我的script 是這樣的:
set objShell = CreateObject("WScript.Shell")
objShell.Run "XCOPY c:\\file1.txt c:\\temp\\ /Y"
objShell.Run "XCOPY c:\\file2.txt c:\\temp\\ /Y"
當我run script 時, 發現2個xcopy 的動作同時進行, 有沒有方法可以完成copy file1.txt 後, 才開始 copy file2.txt 呢?
謝謝