|
|
Question : Search & Delete a specific file in the whole Hard Drive ?
|
|
hi there,
i want to create a batch file that will search all of the drives (ex. c:\ d:\ e:\ ... etc) for a specific file and delete it. Most of the answers here only for one drive , i want it for the Complete HD ... and how to log the succesful deleted ones to a central point (network shared text file) ???
thankx
|
Answer : Search & Delete a specific file in the whole Hard Drive ?
|
|
Hehe ... nod, I see why. Since you ran the script from the C drive, the current directory acted as the base of the search on that drive. To correct this oversight, search for -
pushd %*
... on a line by itself and replace with -
pushd %*\
... that should resolve it.
|
|
|
|
|