What is difference between
Shell(App.Path & "\" & "Hello.exe")
and
Shell("Hello.exe")
If I put Hello.exe in the program’s folder.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First line will launch
Hello.exefrom the app folder. If it’s not there, the call will fail.Second line will try to find
Hello.exein several locations:PATHenvironment variable.The call will fail only if
Hello.exeis not to be found in any of them.Related Raymond Chen post: Your debugging code can be a security vulnerability: Loading optional debugging DLLs without a full path.