China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-03 08:29
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Batch file for copying files over a LAN. View 1,037 Replies 2
Original Poster Posted 2007-01-30 06:10 ·  中国 山西 临汾 联通
新手上路
Credits 4
Posts 1
Joined 2007-01-30 05:46
19-year member
UID 78092
Gender Male
Status Offline
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.
Floor 2 Posted 2007-01-30 07:05 ·  中国 湖北 荆门 电信
初级用户
Credits 22
Posts 9
Joined 2006-08-01 17:07
20-year member
UID 59625
Gender Male
Status Offline
@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
Floor 3 Posted 2007-01-30 07:07 ·  中国 湖北 荆门 电信
初级用户
Credits 22
Posts 9
Joined 2006-08-01 17:07
20-year member
UID 59625
Gender Male
Status Offline
@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
Forum Jump: