I need help understanding how VBScript locate files. For example, I have a VBScript located in C:\program files\test\test1. I want to call an .exe file located in that same folder, do I have to use the whole line, "Wshshell.run C:\program files\test\test1\sample.exe" or can I just use "WshShell.run \\test1\sample.exe"?
I would prefer to use the second line in one way or another, because using the whole line will probably cause problems in the future. I ran tests using the second line and have had mixed results. I haven't been able to find any definite definition that tells me exactly how VBScript interprets these lines. I know in DOS, it would look in the current directory first. Thanks for any help in advance.
I would prefer to use the second line in one way or another, because using the whole line will probably cause problems in the future. I ran tests using the second line and have had mixed results. I haven't been able to find any definite definition that tells me exactly how VBScript interprets these lines. I know in DOS, it would look in the current directory first. Thanks for any help in advance.