|
Answer» Hi
I was wondering if I could get some help in creating a bat or cmd to perform a particualr function in Windows XP. In a PARTICULAR scenario I am working on, a server will backup files from network computers. But before that, I need a batch file to execute and check that the mapped drives on the server to client computers are active and available (as the backup will not WORK if the mapped drives auto disconnect)
So far I have worked out: start L:\ will open the mapped drive L and show its folder contents (therefore verifying mapped drive has not disconnected and is ready) , but now how do I close the drive window?
In other words, what command would I use to now close the L drive window I opened with command 'start'?To check if a drive is mapped (active) you can analyze the output of the "net use" command. Parse it with a for loop.
uliQuote In other words, what command would I use to now close the L drive window I opened with command 'start'?
"exit" closes the window
uli
uli
both solutions sound interesting, my only PROBLEM is how to syntax your results would you be able to help me CONSTRUCT the batch file CODE? I have really no idea how to do it
|