PC Review


Reply
Thread Tools Rate Thread

batch file calling an .hta file

 
 
Larry
Guest
Posts: n/a
 
      13th Aug 2004
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


 
Reply With Quote
 
 
 
 
Torgeir Bakken \(MVP\)
Guest
Posts: n/a
 
      13th Aug 2004
Larry wrote:

> 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


--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scr...r/default.mspx
 
Reply With Quote
 
Larry
Guest
Posts: n/a
 
      13th Aug 2004
Thanks Torgeir

I appreciate it

LT

"Torgeir Bakken (MVP)" <Torgeir.Bakken-(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Larry wrote:
>
> > 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
>
>
> --
> torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
> Administration scripting examples and an ONLINE version of
> the 1328 page Scripting Guide:
> http://www.microsoft.com/technet/scr...r/default.mspx



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
calling multiple batch files from within a batch file yawnmoth Windows XP General 3 26th May 2008 06:47 PM
batch file calling exe file problem JPS Windows Vista Security 1 20th Dec 2007 01:18 AM
calling a batch file Jim Simpson Microsoft Excel Programming 2 14th May 2004 06:57 PM
Calling Batch within a Batch file Bobby Stiklus Microsoft Windows 2000 Developer 1 27th Apr 2004 06:40 PM
Calling Batch within a Batch File ChuckR Microsoft Windows 2000 Developer 0 22nd Apr 2004 02:33 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:29 AM.