|
使用BAT命令判断文件是否存在
范例:-
- @echo off
- if not exist c:\Temp\1.txt goto nofile --1
- goto start --2
- :nofile
- copy \\xp\temp\111.txt c:\temp\1.txt --3
- :start
- mstsc.exe --4
复制代码 注释:
1: 此处的意思是判断如果不存在C:\TEMP\1.TXT 则跳转至自定义的NOFILE的脚本
如果存在刚跳过.执行下一步
2: 执行自定义START脚本
3:此处为执行第一句判断的后续内容,(复制网络路径\\SERVER\TEMP\111.TXT到当前机器中的C:\TEMP目录中并改名为1.txt
4.执行MSTSC.exe程序. |
Windows, 程序, 电脑, 服务器, 破解, 软件, 系统, Vista, 软件, 系统, 破解, 电脑, 软件, Windows, 程序, 电脑, 破解, 软件, 网络, 系统, 软件, 系统, Ghost, 计算机, 破解, 软件, 系统, 电脑, 服务器, 密码, 破解, 软件, 网吧, 网络, 系统,
|