batch file - Sending a error message if folder not found -


i have written bat file users download svn repository , open folder using start command. here how script looks like:

@echo off echo. echo. [ svn updater ] set svnurl=https://svn.test.com/test set source=c:\projects\ set svn=c:\program files\tortoisesvn\bin echo. "%svn%\tortoiseproc.exe" /command:checkout /path:"%source%" /url:%svnurl% /closeonend:2echo. done. echo. echo. operation complete. start c:\projects\ 

this works fine if svn installed checkout destination folder c:\projects. problem if tortoise svn not installed in user's machine. operation fail , return message "cannot open c:\projects\" folder doesn't exist.

question: need place if condition or rescue if couldn't open local folder, , rather send message "svn not installed". can please me out this. ruby programmer , don't know batch scripting.

thanks in advance

this alert user. did want do?

if not exist "%source%\" ( echo please install xxx program , try again pause goto :eof ) 

Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -