Dec 4, 2005 #1 hilliolouis Programmer Joined Jul 22, 2005 Messages 51 Location GB How would you set the app just to either show a message or do nothing if it cannot find an application run though the Shell command? Thanks Louis Hill
How would you set the app just to either show a message or do nothing if it cannot find an application run though the Shell command? Thanks Louis Hill
Dec 4, 2005 #2 RoyVidar Instructor Joined Jun 16, 2000 Messages 6,606 Location NO Could it be an idea to try to trap it before Shell barfs, through for instance the [tt]File.Exists Method[/tt] of the System.IO namespace? [tt]If File.Exists(strPath) Then ' shell your app else messagebox.show("your message") end if [/tt] Roy-Vidar Upvote 0 Downvote
Could it be an idea to try to trap it before Shell barfs, through for instance the [tt]File.Exists Method[/tt] of the System.IO namespace? [tt]If File.Exists(strPath) Then ' shell your app else messagebox.show("your message") end if [/tt] Roy-Vidar