>is there a particular reason you want to use II? And I'm not completely clear 
>about your quoting requirements, but I'd do something like this:

Nope, I actually don't know any better:)

>cmd.exe /c c:\Program Files\cwRsync\rsync.exe $options "$source" "$dest"

Having an issue with this, so I amended it to a local machine and test data:


$arrayPaths = "administrator/", "administrator.WXP000/", "All Users/"
$Options = '--verbose --recursive --times --partial --progress --compress 
--human-readable --del --ignore-errors --force --bwlimit=0 --timeout=300 
--chmod=D=rwx,F=rw'

foreach ($path in $arrayPaths)
{
    $source = "/cygdrive/c/Documents and Settings/$path"
    $dest = "192.168.0.10::test" + '"' + "/Documents and Settings/$path" + '"'
    cmd.exe /c start /wait "c:\Program Files\cwRsync\rsync.exe $options 
"$source" "$dest""
}


I get a windows error:
The system cannot find the file /cygdrive/c/Documents and 
Settings/administrator/ 192.168.0.13::test/Documents.
...


Any idea?

Thanks Michael!
jlc

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

Reply via email to