Link to home
Start Free TrialLog in
Avatar of Eenzaamheid
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.
Avatar of samgiuoco
samgiuoco

Try breaking your string like this:

"ShellExecute.exe " & App.Path & " OpenMe.htm"
ASKER CERTIFIED SOLUTION
Avatar of samgiuoco
samgiuoco

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Eenzaamheid

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.
i recommend he give the points to me.. since im the only one that posted and he said i solved the problem