batch file calling an .hta file

L

Larry

Hi All

I am writing a batch file which calls an .HTA file, which promts a user for
input. Once the user has finiished inputting the information I need it to
then return to the batch file and complete. Problem is that the hta file
executes and brings up the window, however the batch file completes its
execution in the background.

I have tried using the start /wait , but because the hta file is not really
a program it immediately goes back to the batch file.

Any insight or help would be greatly appreciated.

Thanks in advance
LT
 
T

Torgeir Bakken \(MVP\)

Larry said:
Hi All

I am writing a batch file which calls an .HTA file, which promts a user for
input. Once the user has finiished inputting the information I need it to
then return to the batch file and complete. Problem is that the hta file
executes and brings up the window, however the batch file completes its
execution in the background.

I have tried using the start /wait , but because the hta file is not really
a program it immediately goes back to the batch file.
Hi

This works fine for me:

start /wait mshta.exe F:\hta\commandshlp.hta
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top