![]() |
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-09-23 16:26 |
47,812 topics / 349,917 posts / today 0 new / 48,273 members |
| DOS批处理 & 脚本技术(批处理室) » Copying files over the network |
| Printable Version 2,060 / 2 |
| Floor1 stevendon | Posted 2010-09-25 15:16 |
| 新手上路 Posts 6 Credits 14 | |
|
Server address: 10.50.20.19
Server name: archive Directory name: cms Question 1: @echo off echo Copy file copy D:\sky\>*.txt \\archive\cms >>D:\sky.txt %date%>>D:\sky.txt %time%>>D:\sky.txt Result: Access denied. 2010-09-25 Saturday 13:34:39.69 Why can't it find the path here? @echo off echo Copy file copy D:\*.txt \\10.50.20.19\cms >>D:\sky.txt echo %date%>>D:\sky.txt echo %time%>>D:\sky.txt pause This can be successful Question 2: 1. Save this batch file as: b.bat and place it in D:\ 2. Then use at 13:40 D:\b.bat The result is: The task schedule can execute normally, but the file cannot be copied D:\d.txt 0 file(s) copied. 2010-09-25 Saturday 13:40:00.13 What is the reason for this? |
|
| Floor2 terrytong | Posted 2011-01-13 15:49 |
| 中级用户 Posts 115 Credits 240 | |
|
I estimate you can't access it by the computer name. First, manually enter \\archive\cms in the cmd prompt and press Enter.
|
|
| Floor3 eminjin | Posted 2011-01-14 16:27 |
| 新手上路 Posts 10 Credits 10 | |
|
First, use net use to map the network drive, and then normal copy should be okay. The first success might be because the password has already been entered, so it can copy. The second time, it might be that the verification has timed out or some other reason, resulting in access denied.
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |