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?
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?
