|
-
Mar 24th, 2000, 12:27 AM
#1
Thread Starter
New Member
My "objective" is to run a sql query, to save the file on a local drive and then to copy the file to a network location automatically. The code works when I execute it but when I schedule it, using Norton Scheduler or NT's At command, I get a file not found error.
This is the body of what I'm doing...
________________________
AppActivate "ISQL/w"
SendKeys "%{F}"
SendKeys "{A}"
SendKeys "RMA_INFO.TXT", True
SendKeys "{ENTER}", True
SendKeys "{Y}", True
SendKeys "%{F}"
SendKeys "{X}", True
SendKeys "{Y}"
SendKeys "{ENTER}", True
Kill "\\servername\tdrive\service\rma_info.txt"
Call Copy_File
________________________
The Copy_File function is where shfileoperation comes in. the code is taken directly from kb Q151799 and copies from a local to a network drive.
I believe the file not found error comes at the Kill statement, but only when scheduled. When I run the executable, it works.
Any suggestions?
Regards,
Deb
-
Mar 24th, 2000, 01:41 AM
#2
Member
What functin are you useing?
What function are you useing to copy the file?
The function CopyFile or Name can't copy files to other drives, so if you use this function it's maybe that the //server/ is not consider to be the same drive as c:\
Hope to help,
Kiron.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|