I tried to run this as a jal script, but it doesn't work. This is wat I entered in the box "job automation script": FileRename( "d:\inetpub\ftproot\incoming\hcn\rip\results.arj", "d:\inetpub\ftproot\incoming\hcn\rip\results@T"ddmmyy".arj" ) The program gives me the following error: "Source file not found". But the source file really is in this directory. Strange is that the following string does work: FileRename( "results.arj", "results@T"ddmmyy".arj" ) How can the program know where the file "results.arj" is located on the hd? The source file still is in the directory rip (see above)! What is going wrong? Can you please make a script for me that I can just import in the job. This is what I would like to do. - Rename the file results.arj (wich is located in the directory shown above)to the original name including the current date and than move it to d:\inetpub\ftproot\incoming\hcn\rip\backup\. Thank you verry much! Regards, Martijn : FileRename( "[file path]\results.arj", "[file : path]\re@T"ddmmyy".arj") : Replace file path fith the actual path : Note that you can also use @T in the command line like : cmd /b rename [file path]\results.arj [file path]\re@T"ddmmyy".arj : This command can be scheduled to run as "program type" job
|