Solved

KIXTART look through subdirectories

Posted on 2001-08-09
3
366 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

863 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

27 Experts available now in Live!

Get 1:1 Help Now