Re: Help with two things....
'1). A simple END statement after your Shell 'command will terminate your program like so
'
private Sub Form_Load()
Page$ = "d:\myfile.html"
ShellX = Shell("explorer.exe " + Page$)
END ' Terminate this program
End Sub
'2). IF you use the App.Path statement then 'whatever location your App is running is used.
'If your program is running on "F:\" using
App.Path will like so
'
Page$ = App.Path & "MyFile.htm"
'
will produce results that look like
'
Page$ = "F:\MyFile.htm"
'
If your program is running from a directory other than the root directory,
then App.Path will show something like this. if your app is running on "D:\MyPath" then
App.Path would show "D:\MyPath".
IN this case you would need to add the backslash to your Page$ assignement like this
'
Page$ = App.Path & "\MyFile.htm"
'
this will produce somwthing like this
'
Page$ = "D:\MyPath\MyFile.htm"
John G
Re: Help with two things....
don't put your code on a form if you don't want a the form to show.
i would:
create a standard module with a sub main()
put your code in main
remove the form from the project
set main as the startup object (project properties, general tab)
also, if you put myfile.html in the same folder as myapp.exe you don't have to specify a path just do Page$="myfile.html"
thanx/good luck,
adam
Re: Help with two things....
Hi guys,
Thanks for the help, I will give your suggestions a try and let you know how it goes.
Thanks again,
MI