Using VB.NET 2005.....
I have the following line:
Shell (Application.StartupPath + "PrintLog.exe", AppWinStyle.NormalFocus) (swapping the + for & does not change the fact the file cant be found)
VB tells me that the file is not found, but I put PrintLog.exe in the same folder as my vbproj project file.
Why wont it run PrintLog.exe?
If I write it out like this:
Shell ("""C:\Documents And Settings\Jay\Desktop\Game\PrintLog.exe""", AppWinStyle.NormalFocus)
This version of the code will run with no problems.
However, I need it to accept Application.StartupPath so that the two exe's can be used on any pc and App A is not trying to find App B through a filepath that exists on my pc. Otherwise I'd have to rename every computer I want to use it on as "Jay"
Can someone please tell me what I did wrong?
thanks
Enter your message below
Sign in or Join us (it's free).