 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
ssola@trety.es
Joined: 26 Apr 2007 Posts: 4
|
|
Error writing to file c:\test\archivage\xxx.txt |
|
Hello,
What cause this 24x7 message?
“Error writing to file c:\test\archivage\xxx.txt”
Here’s the source code in javascript:
File.copy("c:\\test\\upload\\a.txt" , "c:\\test\\archivage\\xxx.txt");
I tried some changes, but I’m still having this problem.
Anybody can help me?
Thank you in advance for your help.
Regards !!
|
|
Mon Jun 04, 2007 4:41 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7966
|
|
|
|
The script syntax is ok.
Do you have permissions to write to c:\test\archivage directory?
Do you have by any chance file xxx.txt open in some other program?
Are there other instances of the scheduler or the job running concurrently (have you checked the task manager and/or job monitor)?
|
|
Mon Jun 04, 2007 8:19 am |
|
 |
ssola@trety.es
Joined: 26 Apr 2007 Posts: 4
|
|
Error writing to file c:\test\archivage\xxx.txt |
|
Hello again,
When I test the same operation from CMD screen, with the DOS command “COPY”, it works normally.
Any suggestion?
Thanks in advance.
|
|
Tue Jun 05, 2007 3:01 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7966
|
|
|
|
Please try changing the script to the following and check if that works for you
Process.runAndWait( "cmd.exe /C copy c:\\test\\upload\\a.txt c:\\test\\archivage\\xxx.txt", 0);
|
|
Tue Jun 05, 2007 8:48 am |
|
 |
ssola@trety.es
Joined: 26 Apr 2007 Posts: 4
|
|
|
|
Hello,
Thank you very much !!! It works perfectly.
Regards.
|
|
Wed Jun 06, 2007 6:06 am |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|