Using the Try - Catch method.
Try
Shell("\bin\game.exe", AppWinStyle.NormalNoFocus)
catch ex as Exception
if ex.message = "" 'Can't remember the exact text, type in the exact exception message
then MessageBox.Show("File not found.Please place the program into the program folder")
else
msgbox (ex.message)
end if
end try
adam_k
Veteran Poster
1,057 posts since Jun 2011
Reputation Points: 274
Solved Threads: 205
Skill Endorsements: 11
Question Answered as of 1 Year Ago by
adam_k