When you manually connect to the that network path... are you being proimpted for any security/login?
I don't know if used the net use command properly or not, but a similar command to the following worked for me:
@runmode hide
net use z: \\srv04\Exchange
Copy "z:\*" TO "C:\_RG\2"
net use z: /delete
It's strange that patterns in UNC paths don't be treated the same as in normal paths. a feature request?
Why do you use the Dopus for performing this task? While it is possible to do this with the DO it is certainly overkill. The most easiest
and safest way to mirror the directories over network is robocopy routine:
For eaxmple, to mirror content of directory C:\Common to network share \NetServer\Share type the following command:
robocopy.exe C:\Common \NetServer\Share\ /MIR /TEE /LOG:"output.log" /NP
This routine is included in Vista. It can be also downloaded.
Toller.
HAHA... actually, I'd argue that going to another app like robocopy is a bit overkill... but only because I should have expected this to have been real quick and easy using an Opus button
.
Hindsight...
Anyhow, robocopy is indeed intended for things like this and it makes a lot of sense to use it for the purpose described here, especially when we're also talking about 'scripting' this so that it can be scheduled through task scheduler etc etc...
Still, it's odd that this has turned into such a hit or miss task... copy... done... should be.
I think the problem is that most of the Windows file system API functions don't really handle talking to network paths that well. If a network path isn't connected most API functions will simply fail rather than causing it to connect automatically. So we have to put special handling in for these cases and handle the connect ourselves. We currently do this when a folder is read into a Lister, but if you are using the raw Copy command to perform a copy without first reading the folder in a Lister, this step is bypassed.
[quote="W0lfdale"]I don't know if used the net use command properly or not, but a similar command to the following worked for me:
@runmode hide
net use z: \\srv04\Exchange
Copy "z:\*" TO "C:\_RG\2"
net use z: /delete
[/quote]
Great thanks! This button works fine! (i tried map \srv04\Exchange using Dopus Tools-Map network drive... & got bad results)