Page 2 of 2 <12
Topic Options
#194422 - 2009-06-25 01:23 AM Re: Is it Possible to sync files? [Re: tgallup]
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
Here is the exact code (sanatized of course) that I used to move 1200 users home folders with Robocopy.

Maybe it will give you an idea of what you are doing incorrectly. And as Glenn said, you need to run it from a command line. Not from a script to see what is going on with it.

 Code:
$Options = "/R:2 /Z /W:2 /CopyAll /MOV /E /V /NP /LOG+:\\server\c$\scripthome\logs\"+$AD_User+".txt"
Shell "%comspec% /c \\server\c$\scripthome\bin\Robocopy " + $Directory + " " + "\\store\homedir$\" + Left($AD_User,1) + "\" +$AD_User+"\ "+ $Options
$Result_Flag[0] = @ERROR
$so = WriteLine ($fh,"HomeShare move attempted exit code of :" + $Result_Flag[0] + " " + @CRLF)


Edited by Gargoyle (2009-06-25 01:26 AM)
Edit Reason: Removed extra spacing
_________________________
Today is the tomorrow you worried about yesterday.

Top
#194436 - 2009-06-25 02:22 PM Re: Is it Possible to sync files? [Re: Gargoyle]
tgallup Offline
Fresh Scripter

Registered: 2009-02-06
Posts: 20
Loc: Baltimore
The issue was the robocopy.exe program. I had the one running from server 2008, i copied up the one from the server 2003 resource kit and all is well now, thank you all for your help.
Top
Page 2 of 2 <12


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 369 anonymous users online.
Newest Members
rrosell, PatrickPinto, Raoul, Timothy, Jojo67
17877 Registered Users

Generated in 0.05 seconds in which 0.024 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org