中国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-13 05:56
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS媒体世界 & 网络技术 (多媒体室) » [Help] How to write a batch file to copy files from a network drive to the workstation's hard drive
Printable Version  1,511 / 1
Floor1 vocabulary Posted 2006-11-30 12:23
初级用户 Posts 16 Credits 40
Dear experts:

If the network drive letter mapped in the DOS workstation is H:\, how to write a batch file (such as c.bat) to copy the specified data in the H:\ drive to the hard drive. For example, the user wants to copy the files starting with ABC in the H:\ drive to the C:\ drive. The user only needs to enter C ABC*, and this batch file will automatically copy the files starting with ABC in the H:\ drive to the C:\ drive. Please give some guidance, thank you in advance!
Floor2 ghostme Posted 2006-12-10 05:44
初级用户 Posts 6 Credits 21
Try the following statement by yourself:

@echo off
copy "%1*.* h:\

Then when calling, just use c.bat abc, no need to follow with * after that
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023