|
-
Dec 10th, 2002, 07:12 AM
#1
Thread Starter
Addicted Member
batch file to search and locate
I am trying to write a batch file to look for a file on a drive and if its not there then create one.
Was thinking of using dir with /s to locate the file but then how do I capture weather or not I have found it..
very new to this so any help much appreciated.
-
Dec 10th, 2002, 09:59 AM
#2
Retired VBF Adm1nistrator
Something like this perhaps
Code:
Dir somefile.txt /s
If it's there, you'll see the directory, if not, then you wont.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|