中国DOS联盟论坛

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-03 07:24
48,038 topics / 350,123 posts / today 1 new / 48,251 members
DOS批处理 & 脚本技术(批处理室) » Batch file for copying files over a LAN.
Printable Version  1,035 / 2
Floor1 hongguanjs Posted 2007-01-30 06:10
新手上路 Posts 1 Credits 4
It's within the same LAN. I want to make a batch file.
To copy everything under E:\netgame\ on this machine to d:\netgame\ on another machine.
How do I write
this batch file.?
Thanks.
Floor2 lifonglin Posted 2007-01-30 07:05
初级用户 Posts 9 Credits 22
@echo off
d:
md game
cd game
copy \\192.168.1.2\game\ d:\game\ /d/r/y/e/h
pause
exit
I tested it on my own machine and it works
Floor3 lifonglin Posted 2007-01-30 07:07
初级用户 Posts 9 Credits 22
@echo off
d:
md game
cd game
xcopy \\192.168.1.2\game\ d:\game\ /d/r/y/e/h
pause
exit
Sorry, it's xcopy
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023