Solved

KIXTART look through subdirectories

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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
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…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

630 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