Robocopy 一个文件后关机

robocopy c:\folder \\192.168.1.10\shared somefile.dat & shutdown -s -t 30 -f

 此例子复制c:\folder\somefile.dat到\\192.168.1.10\shared\somefile.dat,无论结果,robocopy结束后30秒强制关机。

猜你喜欢

转载自www.cnblogs.com/Bob-wei/p/9155189.html