![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-12 13:09 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS学习入门 & 精彩文章 (教学室) » Help me take a look! |
| Printable Version 1,187 / 3 |
| Floor1 zqonline | Posted 2003-05-26 00:00 |
| 初级用户 Posts 4 Credits 123 | |
|
@echo off
rem set the mapped drive letter set mm=k: rem set the source folder path set lj=d:\1\ rem set the target folder path set mb=1 echo The following computers did not finish copying because they were shut down! In the spirit of being conscientious and responsible about the work, please check them! > d:\err.txt echo Computers copied successfully! > d:\ok.txt :star if "%1"=="" goto end net use "%mm%" \\%1\d sa0714 if not exist "%mm%"\*.* goto err cls echo. echo. echo. echo. echo. echo. echo Copying games to computer %1! The mapped drive you are using now is "%mm%" echo. echo. echo. echo. echo. echo. xcopy/y/e "%lj%" ""%mm%"\"%mb%"\" if errorlevel 5 goto err1 if errorlevel 4 goto err1 if errorlevel 3 goto err1 if errorlevel 2 goto err1 if errorlevel 1 goto err1 if errorlevel 0 goto ok1 k1echo Computer %1 has been copied successfully >>d:\ok.txt net use "%mm%" /del /y shift goto star :err cls echo. echo. echo. echo. echo. echo. echo Computer %1 may be shut down! Please check! echo. echo. echo. echo. echo. echo. echo %1 >>d:\err.txt shift goto star :err1 cls echo. echo. echo. echo. echo. echo. echo Computer %1 has been interrupted! It may be that the target computer shut down abnormally or restarted, or that disk space is insufficient echo. echo. echo. echo. echo. echo. echo %1 >>d:\err.txt shift goto star :end cls echo. echo. echo. echo. echo. echo. echo Copyright of this program belongs to Zhang Qiang Tel: 8901381 echo. echo. echo. echo. echo. echo. c:\windows\NOTEPAD.EXE d:\err.txt c:\windows\NOTEPAD.EXE d:\ok.txt rem set the mapped drive letter set mm= rem set the source folder path set lj= rem set the target folder path set mb= |
|
| Floor2 zqonline | Posted 2003-05-26 00:00 |
| 初级用户 Posts 4 Credits 123 | |
|
My skill level is limited. Could everyone help me improve it a bit?
|
|
| Floor3 Wengier | Posted 2003-05-26 00:00 |
| 系统支持 Posts 10,521 Credits 27,736 | |
|
What kind of optimization are you trying to make?
|
|
| Floor4 zqonline | Posted 2003-05-26 00:00 |
| 初级用户 Posts 4 Credits 123 | |
|
Take a look and see whether there are any mistakes~ things like that~!
Can it be made a bit better~ |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |