|
|
|||||||
I'm having trouble creating a script to check a directory and copy files across that are new/updated. I'll try to sum up my problem easily: Computer A is logging onto Server B. Server B has a directory called \\serverB\update . I need Computer A to have this and the files in it only when it's updated. Is it possible to check Computer A to verify it has the directory (and if not create it) and then compare the files in it and copy over any newer files. Any help, guidance is appreciated. I'm rather stuck right now...thanks |
||||||||
|
|
|||||||
Yes, you can do that. Use EXIST to check whether the directory exists. Then use the DIR command to enumerate the files in your source directory. Use COMPAREFILETIMES to check for updated files and copy if neccessary. Jens E.G.: code: |
||||||||
|
|
|||||||
ah, Thanks alot i'll give it a try. |
||||||||
|
|
|||||||
Dear, Welcome to the board. We don't know you solve your problem, but for ideas see also our
|