SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Error writing to file c:\test\archivage\xxx.txt

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Error writing to file c:\test\archivage\xxx.txt
Author Message
ssola@trety.es



Joined: 26 Apr 2007
Posts: 4

Post Error writing to file c:\test\archivage\xxx.txt Reply with quote
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 View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7966

Post Reply with quote
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 View user's profile Send private message
ssola@trety.es



Joined: 26 Apr 2007
Posts: 4

Post Error writing to file c:\test\archivage\xxx.txt Reply with quote
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 View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7966

Post Reply with quote
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 View user's profile Send private message
ssola@trety.es



Joined: 26 Apr 2007
Posts: 4

Post Reply with quote
Hello,

Thank you very much !!! It works perfectly.

Regards.
Wed Jun 06, 2007 6:06 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
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


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.