中国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-05 20:21
48,039 topics / 350,124 posts / today 2 new / 48,251 members
DOS批处理 & 脚本技术(批处理室) » How can I use a batch file to compare this and delete the extra files?
Printable Version  1,010 / 3
Floor1 fengzi Posted 2007-02-15 03:41
中级用户 Posts 152 Credits 315
I want to update a series of new files from the server to the local machine. Both folders are named tools and both contain files.
What I want to do is compare the local files with the files on the server, and after the comparison delete the extra files in the local TOOLS without deleting everything completely.
Assume the server IP is 192.168.0.1 and the local machine is 127.0.0.1.
How should this batch file be written`?
I'm a newbie`can anyone tell me how to write it`
Floor2 fengzi Posted 2007-02-15 04:13
中级用户 Posts 152 Credits 315
The workload is too heavy```I hope someone can help me``
Floor3 fengzi Posted 2007-02-15 07:11
中级用户 Posts 152 Credits 315
Floor4 leton Posted 2007-09-19 10:09
初级用户 Posts 72 Credits 170
A dumb method:

Map the server directory to a local drive letter, then write the comparison script on the client side, so it automatically compares the files as soon as it starts up.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023