Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy File

Status
Not open for further replies.

damann

Technical User
Jul 19, 2000
114
US
Has anyone ever seen or used a copyfile function in PeopleCode before? I'm in need of knowing how to copy a file from one location to another, but can't seem to find a PeopleCode function that can do this for me. Maybe I'm looking in the wrong place...(?) Maybe there's some other function that can be used to emulate this functionality. Please let me know...


Thanks,
Damann
 
/* to move a file to another directory */
&STR_COMMAND = "cmd /c MOVE /Y ";
&STR_COMMAND = &STR_COMMAND | &filepath | &STR_FILENAME;
&STR_COMMAND = &STR_COMMAND | " """ | &filepath| "Processed\" | &STR_FILENAME | """";
Exec(&STR_COMMAND, %Exec_Asynchronous + %FilePath_Absolute);

Maybe you van use this?

With regards,
Henk

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top