Computing.Net > Forums > Windows 2000 > copying files with Task Scheduler

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

copying files with Task Scheduler

Reply to Message Icon

Name: teko
Date: December 12, 2005 at 03:14:07 Pacific
OS: windows 2000 server
CPU/Ram: PIII/1 GH
Comment:

hi,i have this vbs script to copy files from a mapped drive(F:) to my local drive(D:)
------
M = Month(now()-1)
D = Day(Now()-1)
if M < 10 then M = "0" & M
if D < 10 then D = "0" & D
strFilePath = Year(now()-1) &"-" & M &"-" & D
strFilePath = "F:\RADIUS Accounting " & strFilePath & ".csv"

Set fso = CreateObject("Scripting.FileSystemObject")
call fso.CopyFile (strFilePath , "D:\RADIUS Accounting.csv")
set fso = nothing
-------
and i have a task to do this operation daily the script fails when called from task sch,but it runs ok manually,i looged in with the same account that runs the task,also this account has authority on both source and dest paths,..any ideas...!!



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: December 12, 2005 at 05:56:14 Pacific
Reply:

My limited experience with tas sched & AT has been mostly bad.

It acts not smart enough to 'get' the path.

Notice in this session that the tcc will not run without the full path and name, even though it's in the path. Also notice that the first task supposedly 'ran' because it's off the list; but it did not *DO* anything.

################
C:\temp\->at
Status ID Day Time Command Line
----------
1 Today 20:51 c:\tc\bin\tcc.exe
2 Today 20:51 c:\tc\bin\tcc
3 Today 20:51 tcc.exe

C:\temp\->at
Status ID Day Time Command Line
----------
Error 2 Tomorrow 20:51 c:\tc\bin\tcc
Error 3 Tomorrow 20:51 tcc.exe
##############


If at first you don't succeed, you're about average.

M2


0

Response Number 2
Name: Mechanix2Go
Date: December 12, 2005 at 06:07:33 Pacific
Reply:

Seems it's not smart enough to do an internal command either.

####
C:\temp\->at
Status ID Day Time Command Line
-----------------
Error 2 Tomorrow 20:51 c:\tc\bin\tcc
Error 3 Tomorrow 20:51 tcc.exe
Error 4 Tomorrow 20:59 copy *.bak s:\
Error 5 Tomorrow 21:00 copy c:\temp\-\*.bak s:\
###


If at first you don't succeed, you're about average.

M2


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows 2000 Forum Home


Sponsored links

Ads by Google


Results for: copying files with Task Scheduler

Batch files and Task Scheduler www.computing.net/answers/windows-2000/batch-files-and-task-scheduler/48138.html

Batch File to Copy file with greate www.computing.net/answers/windows-2000/batch-file-to-copy-file-with-greate/61475.html

Cannot move files via Task Schedule www.computing.net/answers/windows-2000/cannot-move-files-via-task-schedule/53556.html