[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

System Call to Copy & Rename file



> Hello All,
> I have been asked to do some file manipulation
> within an SQR that is currently being done by the
> user after completion of the SQR.  The SQR
> creates a file called payroll.dk in C:\TEMP .  This
> flat file is then copied by the user into another
> folder...

I had the same problem with a job I wrote awhile back.
 It was supposed to write a file, FTP it to another
site and then archive the file so we could check
things out when they went bad.  Well, things went bad
and of course it hadn't archived anything...

You can use the batch file as was suggested, I
sucessfully tried that.  You might also try the XCOPY
DOS command if you want to keep the logic internal to
the program, and use your code with little
modification.  Good luck,

Dunc.



__________________________________________________
Do You Yahoo!?
Send instant messages with Yahoo! Messenger.
http://im.yahoo.com/