Solved

KIXTART look through subdirectories

Posted on 2001-08-09
3
365 Views
Last Modified: 2013-12-28
Hi there,

in my kixtart-logon script I want to look through more than one subdirectory in a special folder on the server if there are new files to copy them if necessary...
How do I get in these subdirectories if I don't know their names? Maybe there are new subdirectories to copy completely...

thanks
Jan
0
Comment
Question by:amazegenalo
3 Comments
 
LVL 13

Expert Comment

by:hstiles
ID: 6372196
?!?!!?

Your question isn't that clear.  Am I right in thinking that you might have some files, say dlls or batch files, that you want copied across to client machines at logon?

If so, then you would probably be better off inserting a shellcommand into your login script and passing the job onto a dos command, such as xcopy or, even better, robocopy from the resource kit.
0
 
LVL 10

Accepted Solution

by:
Longbow earned 50 total points
ID: 6374573
Hi amazegenalo,

I understand you will recursively check your directories
 to find last modified files to have a complete backup.
There are scripts to do this.

Bust the simplest way is the xcopy command.

Here an an exemple i use
xcopy D:\Source\*.* "\\Server\Share" /S/V/E/M/H/R/K/I

Use the option /m
 /M           Copies files with the archive attribute set,
              turns off the archive attribute.

New created and / or modifield files will have the archive attribute set to ON

Using xcopy /m will set the archive attribute to OFF (not checked)

So if the file is not modified, xcopy know it don't need to copy it (attribute OFF).

Longbow
0
 
LVL 7

Expert Comment

by:jjeff1
ID: 6374843
I use xcopy /d /e/s

it copies all files and subfolders that have been modified from the ones existing in the target directory.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Our Group Policy work started with Small Business Server in 2000. Microsoft gave us an excellent OU and GPO model in subsequent SBS editions that utilized WMI filters, OU linking, and VBS scripts. These are some of experiences plus our spending a lo…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now