Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
batch file help
Name: metman Date: November 17, 2004 at 13:34:00 Pacific OS: win xp win 2k CPU/Ram: 512
Comment:
have a batch file that is being used to install hotfixes and updates. i need to be able to do a search to see if a certain dll is there and if it is then go to the next install but if it is not then do the install
Name: Mr. Anonymous Date: November 17, 2004 at 18:28:14 Pacific
Reply:
if exist "[path to and including, file name]" [whatever you want to do, I suppose something like goto]
Just replace, obviously. I was looking for a way to search the computer for a file, and surprisingly I was unable to find anything like that. Hope it helps!
0
Response Number 2
Name: metman Date: November 18, 2004 at 11:17:51 Pacific
Reply:
when i run the if exists command my batch file terminates
0
Response Number 3
Name: Mr. Anonymous Date: November 19, 2004 at 17:27:38 Pacific
Reply:
If you use:
if exist "[path/filename]" then pause
Then the screen stays if it exists,and it will close if it does not.
0
Response Number 4
Name: metman Date: November 24, 2004 at 11:12:56 Pacific
Reply:
but when it terminates it stops the batch file. the if exist statement is in the middle of the batch file
Summary: Hi Could anyone help me figure this out? I’m trying to create a batch file that will go to the C:\ drive and search for the last folder created (e.g SU550) then create a new folder called SU5...
Summary: Thanks for the help. :) I didnt know about the /Q command , but I'll give it a try in a few min. I'm still green with batch files , but they seem to be not to bad to manage once you get it down. Than...
Summary: If anyone can help I would appreciate it. I have a load of files that I want to rename using a batch file (don't mind what language) Files are in format of index.1345 and I want t...