Computing.Net > Forums > Programming > batch file help

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

Reply to Message Icon

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



Sponsored Link
Ads by Google

Response Number 1
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


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


MySQL Query Statement VB.NET and WORD



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: batch file help

batch file help www.computing.net/answers/programming/batch-file-help/13830.html

Batch File Help www.computing.net/answers/programming/batch-file-help-/11464.html

batch file help www.computing.net/answers/programming/batch-file-help/190.html