
CODE: [Copy to clipboard]@echo off
rem 如何检测xp机...
dir F:\>nul && goto thing || (echo XP机没有开机或者网络断开了...&goto :eof)
if not exist F:\123.WBF (
echo 网络上没有此文件...& pause &goto :eof
)
:thing
copy F:\%1.Wbf %1_.wbf
:eof
CODE: [Copy to clipboard]格式为881.bat zxy107zw.wbf,注意要带扩展名,复制之后的文件名为filename.wbf的形式,如果还有问题,再跟帖讨论。本人测试通过……@echo off
if exist "%~f1" (
copy "%~f1" filename.%~x1
start "" ck81.bat
start "" "%~f1"
) else (
echo %1不存在
)
exit
CODE: [Copy to clipboard]如果还是有问题,请继续跟帖讨论.@echo off
dir f:\>nul 2>nul
if errorlevel 1 echo The Windows XP has not on OR the Network has disconnected.&pause&goto eof
if errerlevel 0 goto true
:true
if not exist F:\%1.wbf echo The Windows XP has not exist the file you want.&pause&goto eof
copy F:\%1.wbf .
echo One file(s) copied successfully.
pause
dd.exe %1.wbf
:eof
附件 1:SCREEN01.jpg (2006-10-27 11:03, 14.88 K, 下载附件所需积分 1 点 ,下载次数: 3)
![]()
附件 2:SCREEN02.jpg (2006-10-27 11:12, 8.51 K, 下载附件所需积分 1 点 ,下载次数: 2)
![]()
CODE: [Copy to clipboard]@echo off
dir f:\
if errorlevel 1 goto fail
if errerlevel 0 goto true
:true
if not exist F:\%1.wbf goto yes
copy F:\%1.wbf .
echo One file(s) copied successfully.
pause
dd.exe %1.wbf
:fail
echo The Windows XP has not on OR the Network has disconnected.
pause
goto eof
:yes
echo The Windows XP has not exist the file you want.
pause
goto eof
:eof
CODE: [Copy to clipboard]不知道能不能帮上忙。试试?@echo off
if %1#==# goto END
@ctty nul
command /f /c if not exist f:\nul echo not connected>state1.flg
command /f /c if not exist f:\%1.wbf echo file not exist>state2.flg
@ctty con
find "file not exist" state2.flg>nul
if errorlevel 1 GOTO COPY
find "not connected" state1.flg>nul
if errorlevel 1 GOTO NOFILE
type state1.flg
GOTO DEL
:NOFILE
type state2.flg
GOTO DEL
:COPY
copy f:\%1.wbf
:DEL
del state1.flg
del state2.flg
:END
if exist %1.wbf dd %1.wbf
| Quote: | |
|
| Quote: | |
|
| Quote: | |
|
附件 1:SCREEN03.jpg (2006-10-28 04:17, 15.45 K, 下载附件所需积分 1 点 ,下载次数: 2)
![]()
| Quote: | |
|
| Quote: | |
|
附件 1:SCREEN04.jpg (2006-10-29 00:38, 13.33 K, 下载附件所需积分 1 点 ,下载次数: 2)
![]()
附件 2:SCREEN05.jpg (2006-10-29 00:38, 13.12 K, 下载附件所需积分 1 点 ,下载次数: 2)
![]()
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |