Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run & IE

Status
Not open for further replies.

tampe125

Programmer
May 20, 2008
4
0
0
IT
hi, i have just made a window that creates an htm file (this file is coded using ajax).
to create it, i use the FileOpen/FileWrite/FileClose commands in a button, named "Start".
Then, when it's ready, i'd wish it to open automatically, but this doesn't happen.
I'm using the Run command, but is useless. But (and this is the strange thing) if i double-click on the file (so i open it normally) it works great!
I've even tried to create a batch file and execute it, but the Run command seems not to work... (but i can open the notepad using it..) o_O

so, where is the error?
 
Try shellexecutea as a 'run' alternative.

Matt

"Nature forges everything on the anvil of time
 
Try this

Code:
string	ls_run, ls_my_htm_file

ls_my_htm_file = "c:\my_folder\my_file.htm"

ls_run = "explorer.exe " + ls_my_htm_file
// do not forget to insert at least 1 space between explorer.exe and the file_path !!
Run( ls_run)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top