SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Error Sicnronizing Files

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Error Sicnronizing Files
Author Message
Chertkov Konstantin



Joined: 23 May 2006
Posts: 1

Post Error Sicnronizing Files Reply with quote

I tried syncronize two local derictories. I use SyncLocalDir.
When accsees to file in Source_dir was denied.
I saw message:
A run-time error occurred while executing automation script: Line 1. Error copying file "file name". Error: 5 - Access is denied.
After this Target_dir contains some new and some old files/

How can I prevent this situation in future?

Tue May 23, 2006 8:52 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7970

Post Re: Error Sicnronizing Files Reply with quote

Most likely one of the files that you tried to copy was in use at that time. The solution is kind of obvious, don't schedule SyncLocalDir and other Sync... to run when files are in use by other processes.

: I tried syncronize two local derictories. I use SyncLocalDir.
: When accsees to file in Source_dir was denied.
: I saw message: A run-time error occurred while executing automation script:
: Line 1. Error copying file "file name". Error: 5 - Access is
: denied.
: After this Target_dir contains some new and some old files/

: How can I prevent this situation in future?

Tue May 23, 2006 9:12 am View user's profile Send private message
Paul Tikhonov



Joined: 23 May 2006
Posts: 3

Post Re: Error Sicnronizing Files Reply with quote

: Most likely one of the files that you tried to copy was in use at that time.
: The solution is kind of obvious, don't schedule SyncLocalDir and other
: Sync... to run when files are in use by other processes.

Hi.
In continue to discussion's topic. Can I use Sync... in some way to somehow 'skip'
locked files and directories?

thnx.

Tue May 23, 2006 9:30 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7970

Post Re: Error Sicnronizing Files Reply with quote

No. but... you can first copy all files from the source using DOS "cmd /C xcopy /C /Y *.*" command (in JAL use RunAndWait to invoke that command) and then use Sync... only to delete files from the target which are not in the source directory. Note /C switch for xcopy instructs it to continue copying even if errors occur.

: Hi.
: In continue to discussion's topic. Can I use Sync... in some way to somehow
: 'skip'
: locked files and directories?

: thnx.

Tue May 23, 2006 9:51 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.