#194352 - 2009-06-23 02:39 PM
Is it Possible to sync files?
|
tgallup
Fresh Scripter
Registered: 2009-02-06
Posts: 20
Loc: Baltimore
|
We have a network share that everyone maps to through kix, is there a way to run a script near the end of the logon script that will sync any files within a directory to a directory on your C drive. We have report files that are called by our ERP system and we have to manually copy them right now to each computer when one changes and wanted a way to synch them instead.
Thanks
|
Top
|
|
|
|
#194356 - 2009-06-23 04:01 PM
Re: Is it Possible to sync files?
[Re: Glenn Barnas]
|
tgallup
Fresh Scripter
Registered: 2009-02-06
Posts: 20
Loc: Baltimore
|
Can you give me instructions on how this works? I have never used this command now have I done lots of scripting in Kix.
|
Top
|
|
|
|
#194363 - 2009-06-23 05:34 PM
Re: Is it Possible to sync files?
[Re: Glenn Barnas]
|
tgallup
Fresh Scripter
Registered: 2009-02-06
Posts: 20
Loc: Baltimore
|
will robocopy need to be installed on each users computer?
|
Top
|
|
|
|
#194368 - 2009-06-23 07:53 PM
Re: Is it Possible to sync files?
[Re: Glenn Barnas]
|
tgallup
Fresh Scripter
Registered: 2009-02-06
Posts: 20
Loc: Baltimore
|
I appologize for not understanding, but how will you be able to do that?
|
Top
|
|
|
|
#194370 - 2009-06-23 08:50 PM
Re: Is it Possible to sync files?
[Re: Glenn Barnas]
|
tgallup
Fresh Scripter
Registered: 2009-02-06
Posts: 20
Loc: Baltimore
|
This is what I have, but it doesn't seem to be working
;----synch Reports ------
Shell 'robocopy \\servername\mas\Reports\AR C:\Program Files\Sage Software\Sage MAS 500 Client\AR\Reports\Test /E'
sleep 2
|
Top
|
|
|
|
#194371 - 2009-06-23 09:41 PM
Re: Is it Possible to sync files?
[Re: tgallup]
|
eriqjaffe
Hey THIS is FUN
Registered: 2004-06-24
Posts: 214
Loc: Arlington Heights, IL USA
|
There are spaces in the robocopy line, which will throw it off.
;----synch Reports ------
Shell 'robocopy \\servername\mas\Reports\AR "C:\Program Files\Sage Software\Sage MAS 500 Client\AR\Reports\Test" /E'
sleep 2
|
Top
|
|
|
|
#194372 - 2009-06-23 10:01 PM
Re: Is it Possible to sync files?
[Re: eriqjaffe]
|
tgallup
Fresh Scripter
Registered: 2009-02-06
Posts: 20
Loc: Baltimore
|
Ok this is what I have now, still not working at all
Shell "robocopy \\servername\mas\Reports\AR ("%Program Files%\Sage Software\Sage MAS 500 Client\AR\Reports\Test") /E"
|
Top
|
|
|
|
#194403 - 2009-06-24 04:59 PM
Re: Is it Possible to sync files?
[Re: Glenn Barnas]
|
tgallup
Fresh Scripter
Registered: 2009-02-06
Posts: 20
Loc: Baltimore
|
This is what I have now, but the files still are not copying to my local drive.
Shell 'robocopy \\servername\MAS\Reports\AR "%Program Files%\Sage Software\Sage MAS 500 Client\AR\Reports\Test" /E'
|
Top
|
|
|
|
#194409 - 2009-06-24 08:04 PM
Re: Is it Possible to sync files?
[Re: Glenn Barnas]
|
tgallup
Fresh Scripter
Registered: 2009-02-06
Posts: 20
Loc: Baltimore
|
I am not getting any errors that i know of, nothing when the script runs...
|
Top
|
|
|
|
#194412 - 2009-06-24 09:01 PM
Re: Is it Possible to sync files?
[Re: Glenn Barnas]
|
tgallup
Fresh Scripter
Registered: 2009-02-06
Posts: 20
Loc: Baltimore
|
I am getting %1 is not a valid win32 application
|
Top
|
|
|
|
#194418 - 2009-06-24 10:53 PM
Re: Is it Possible to sync files?
[Re: Glenn Barnas]
|
tgallup
Fresh Scripter
Registered: 2009-02-06
Posts: 20
Loc: Baltimore
|
I added the @SERROR to the end of the command and that is what came back
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 918 anonymous users online.
|
|
|