Guy Danneels
08-07-2007, 07:44 AM
Hello,
(sorry for my bad English)
I'm learning to use AMS 6.0 for some time and want to thank all you great guys; I've learned a lot from you all. Thanks!!
But now I have a problem and I've not found any example on the Forum... looking for some days now...
I need to copy the user files to an other place, and put the systemdate into the filename.
My code:
dag = System.GetDate(5);
maand = System.GetDate(4);
jaar = System.GetDate(6);
datum = ("..dag.., ..maand.., ..jaar..");
newname = ("datum".."Filename.txt");
File.Copy ("C:\\PHAISTOS\\Filename.txt", "C:\\PHAISTOS\\BACKUP\\..newname");
But I can't get it done... what do I wrong?
What I would like to have as a result is:
C:\\PHAISTOS\\BACKUP\\28-04-2007_Filename.txt
Please can I get some help?
(sorry for my bad English)
I'm learning to use AMS 6.0 for some time and want to thank all you great guys; I've learned a lot from you all. Thanks!!
But now I have a problem and I've not found any example on the Forum... looking for some days now...
I need to copy the user files to an other place, and put the systemdate into the filename.
My code:
dag = System.GetDate(5);
maand = System.GetDate(4);
jaar = System.GetDate(6);
datum = ("..dag.., ..maand.., ..jaar..");
newname = ("datum".."Filename.txt");
File.Copy ("C:\\PHAISTOS\\Filename.txt", "C:\\PHAISTOS\\BACKUP\\..newname");
But I can't get it done... what do I wrong?
What I would like to have as a result is:
C:\\PHAISTOS\\BACKUP\\28-04-2007_Filename.txt
Please can I get some help?