Solved

KIXTART look through subdirectories

Posted on 2001-08-09
3
371 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
No single Antivirus application (despite claims by manufacturers) will catch or protect you from all Virus / Malware or Spyware threats. That doesn't stop you from further protecting yourself however - and this article is to show you how.
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

749 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