回复 8# chok
输入的时候只用输入字母就行了,不用输入:号
如果你的命令没问题,是不会出错的.
这个是随机产生盘符,假设你电脑里有c d e f四个分区,已经从随机产生的盘符里过滤了.- @echo off&setlocal enabledelayedexpansion
- set str=GHIJKLMNOPQRSTUVWXYZ
- set /a n=%random%%%20
- net use !str:~%n%,1!: /delete
- net use !str:~%n%,1!: \\10.74.17.11\transport Micros410 /USER:10.74.17.11\EMPKDOWN
- move !str:~%n%,1!:\Send\???????-10.???.???.???\*.* d:\micros\res\em\transport\receive
- Xcopy d:\micros\res\em\transport\*.* d:\package\archives\ /e /y
- move d:\micros\res\em\transport\send\*.* !str:~%n%,1!:\receive\
- net use !str:~%n%,1!: /delete
- pause
复制代码
|