Basscyst
11-23-2004, 11:15 PM
I've found that HTA seems to suit my needs for a project I am working on, I thought that an HTA file acts similarly to an EXE. What I'm trying to do is launch an HTA front end to an access database, when the DB is executed. When I was using html extensions, I was able to create my HTML and JS files on the local file system (The code is all in the DB) launch IE and load up the freshly created files. Now that there is an HTA extension I thought I might be able to just launch the HTA directly, but to no avail. Now I get a do you want to download or open prompt. Which honestly is worse than the active X prompt I was getting before. Is there a way to load up \ execute an HTA dynamically in VB for applications, without a prompt?
This is what I have when it is an html file:
stAppName = "C:\Program Files\Internet Explorer\IEXPLORE.EXE file:\\C:\Documents and Settings\" & Environ$("USERNAME") & "\Local Settings\Application Data\BMS\main.hta"
Call Shell(stAppName, 1)
and when I switched to hta I thought I'd try:
stAppName = "C:\Documents and Settings\" & Environ$("USERNAME") & "\Local Settings\Application Data\BMS\main.hta"
Call Shell(stAppName, 1)
The top one will load the hta, but only after the prompt to save or open, while the bottom does nothing.
Ah Hah, I think I figured it out, somewhat. It doesn't open with IE by default, it opens with Microsoft (R) HTML application host. In which case can I shell execute that in lieu of IE and specify the file just as above? If so, where is it?
Basscyst
This is what I have when it is an html file:
stAppName = "C:\Program Files\Internet Explorer\IEXPLORE.EXE file:\\C:\Documents and Settings\" & Environ$("USERNAME") & "\Local Settings\Application Data\BMS\main.hta"
Call Shell(stAppName, 1)
and when I switched to hta I thought I'd try:
stAppName = "C:\Documents and Settings\" & Environ$("USERNAME") & "\Local Settings\Application Data\BMS\main.hta"
Call Shell(stAppName, 1)
The top one will load the hta, but only after the prompt to save or open, while the bottom does nothing.
Ah Hah, I think I figured it out, somewhat. It doesn't open with IE by default, it opens with Microsoft (R) HTML application host. In which case can I shell execute that in lieu of IE and specify the file just as above? If so, where is it?
Basscyst