Click here to Skip to main content
15,884,388 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to test a path exists or not in a batch file??
Posted
Updated 22-Jan-11 0:04am
v2

1 solution

VB
IF EXIST C:\Windows GOTO ISWINDOWS
echo "C:\Windows" was not found
GOTO END
:ISWINDOWS
	echo "C:\Windows" exists
:END
 
Share this answer
 
Comments
Debojyoti Majumder 22-Jan-11 5:04am    
many thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900