Eenzaamheid
asked on
App.path contains correct path yet cannot open file
I 'caught' the correct path where the executable and the HTML-file can be found in App.Path .
I want to open the OpenMe.htm file when I click on a picture, so inside the Picture_OnClick it looks a bit like the following:
ToOpen = Shell(App.Path & "ShellExecute.exe /F:App.Path & OpenMe.htm")
After "/F:" there has to be the path of the file to open, but as you can see it's wrong. Yet, when I use quotes after "/F:", it gives an error.
I want to open the OpenMe.htm file when I click on a picture, so inside the Picture_OnClick it looks a bit like the following:
ToOpen = Shell(App.Path & "ShellExecute.exe /F:App.Path & OpenMe.htm")
After "/F:" there has to be the path of the file to open, but as you can see it's wrong. Yet, when I use quotes after "/F:", it gives an error.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yup, works with the "\". Thanks!
Eenzaamheid:
This old question needs to be finalized -- accept an answer, split points, or get a refund. For information on your options, please click here-> http:/help/closing.jsp#1
EXPERTS:
Post your closing recommendations! No comment means you don't care.
This old question needs to be finalized -- accept an answer, split points, or get a refund. For information on your options, please click here-> http:/help/closing.jsp#1
EXPERTS:
Post your closing recommendations! No comment means you don't care.
i recommend he give the points to me.. since im the only one that posted and he said i solved the problem
"ShellExecute.exe " & App.Path & " OpenMe.htm"