Page 1 of 1 1
Topic Options
#53169 - 2001-01-12 10:18 PM xcopy?
brewdude6 Offline
Hey THIS is FUN

Registered: 2000-10-21
Posts: 280
Loc: Nashville, TN
OK..here we go again!

Problem: I need to compare two directories. One on the client, one on the server. I need to copy down any newer dated files (easy enough), but if the folders don't exist on the client I can't copy them down. I have gotten it to work for copying empty folders and not the file...and that would work, but I need to be able to copy down any NEW files if files exist within the folder on the client machine. Anybody have any ideas on the best way to approach this?

_________________________
I could have made a neat retort but didn't, for I was flurried and didn't think of it till I was downstairs.
-Mark Twain

Top
#53170 - 2001-01-12 11:48 PM Re: xcopy?
BoxKite Offline
Da Box
*****

Registered: 2000-05-17
Posts: 282
Loc: Vacaville,CA,USA
I am about to suggest something I haven't tried, but sounds like it will work. I have Directory Replication set up between my PDC and BDC.

Replication checks to see if the destination files are the same as the source files. Any differences are corrected to the state of the source files. That is:

"anyfile.txt" in the destination is changed to the copy in the source location.

"anyfile.txt" not in the destination location is copied to the destination.

"anyfile.txt" not in the source location, but in the destination location is deleted.

You can setup server to client replication. You will be dealing with Server manager on the server, and Server in Control Panel on the client.

You can add code to your logon script that will copy the files from the imported location to the location you desire.

If you have never setup replication you will have a chore, but one that can be done.

Luck

------------------
Box
FACTA NON VERBA

_________________________
Box
FACTA NON VERBA

Top
#53171 - 2001-01-13 04:10 PM Re: xcopy?
JensKalski Offline
Starting to like KiXtart

Registered: 2000-12-13
Posts: 186
Loc: Germany
Hello,
I think, you can use xcopy with the options /d for copying only newer files and /u for copying only files that are existing at the targetdirectory.

------------------

Jens Kalski
eMail: jens@kalski.de
homepage: http://www.kalski.de/

_________________________
Jens Kalski

Top
#53172 - 2001-01-13 06:19 PM Re: xcopy?
brewdude6 Offline
Hey THIS is FUN

Registered: 2000-10-21
Posts: 280
Loc: Nashville, TN
Thanks for the tip JensKalski, but I need to be able to copy any new files down "IF" there are files within the subfolders on the client machine that correspond to the subfolders on the server. So, if there is a new file put on the server in any of the subfolders..the client can't copy it down unless they already have files within that folder.
_________________________
I could have made a neat retort but didn't, for I was flurried and didn't think of it till I was downstairs.
-Mark Twain

Top
#53173 - 2001-01-13 07:48 PM Re: xcopy?
Anonymous
Unregistered


$patch=COMPAREFILETIMES(@LDRIVE + "\commands\shutgui.exe","c:\winnt\system32\shutgui.exe")
IF ($patch=1 or $patch=-3)
COPY @LDRIVE + "commands\shutgui.exe" "c:\winnt\system32\shutgui.exe"
$X = "Copied ShutGui"
GOSUB DISP
ENDIF

Top
#53174 - 2001-01-13 09:12 PM Re: xcopy?
brewdude6 Offline
Hey THIS is FUN

Registered: 2000-10-21
Posts: 280
Loc: Nashville, TN
thanks SM...that gives me some ideas for sure!
_________________________
I could have made a neat retort but didn't, for I was flurried and didn't think of it till I was downstairs.
-Mark Twain

Top
#53175 - 2001-01-15 10:57 PM Re: xcopy?
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
Why not use robocopy from the NT resource kit. By the way, the robocopy version from NT3.50 works with Win9x. The version fom NT4.0 is more powerful but only works for NT.

Also there is a nice freewre alternative out there. I think it is called xxcopy.

_________________________
Jack

Top
#53176 - 2001-01-15 11:02 PM Re: xcopy?
DrillSergeant Offline
MM club member
*****

Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
As much as I hate s(h)elling out...

ROBOCOPY rules!!

I use it for almost every copy-command. Just be sure to use the right options.
(Default is a million retries... If it can't be copied after ten retries it ain't gonna happen.)

------------------
Greetz,

Roger the Young
------------------------
The code is out there...
------------------------

_________________________
The Code is out there

Top
#53177 - 2001-01-17 12:47 AM Re: xcopy?
brewdude6 Offline
Hey THIS is FUN

Registered: 2000-10-21
Posts: 280
Loc: Nashville, TN
AWESOME! I tried using the newer version of Robocopy, and it is awesome! The only problem is our clients are 95 machines. I didn't know of the older version working with 95. I will look into this today! Thanks!
_________________________
I could have made a neat retort but didn't, for I was flurried and didn't think of it till I was downstairs.
-Mark Twain

Top
#53178 - 2001-01-17 02:04 PM Re: xcopy?
brewdude6 Offline
Hey THIS is FUN

Registered: 2000-10-21
Posts: 280
Loc: Nashville, TN
Actually...Robocopy doesn't offer any switches that would help me out any more than xcopy or xxcopy. I'm sure that I could accomplish what I need done with one of those utilities using multiple steps. I have solved my problem though....I got the developer in charge of this project to agree to let me copy down ALL the files in the share to the local machines. Thanks for everyones input!
_________________________
I could have made a neat retort but didn't, for I was flurried and didn't think of it till I was downstairs.
-Mark Twain

Top
#53179 - 2001-01-19 08:08 PM Re: xcopy?
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
Maybe you need something like "PC-RDist" or "Ghost Walker". Try doing a web search for "drive imaging".
_________________________
Jack

Top
#53180 - 2001-01-20 01:19 AM Re: xcopy?
brewdude6 Offline
Hey THIS is FUN

Registered: 2000-10-21
Posts: 280
Loc: Nashville, TN
Actually... I think the easiest way would of been to modify the directory structure and shares. Instead of a flat directory structure, I could of made a "User" share, and an "Admin" share. End users fall under one of those catagories. People that have the "admin" portion of the apps would copy from the "admin" share etc. Oh well...too little too late.
_________________________
I could have made a neat retort but didn't, for I was flurried and didn't think of it till I was downstairs.
-Mark Twain

Top
Page 1 of 1 1


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

Who's Online
0 registered and 1821 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.103 seconds in which 0.079 seconds were spent on a total of 12 queries. Zlib compression enabled.

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