Seazoux
Seazoux

Reputation: 631

Open a HTML application (HTA) in background with Batch File

Well, I have this code on my Batch File:

@echo off
echo Espere...
start /MIN /WAIT Registro.hta
echo Terminado!
pause

But it doesn't work, it so strange...

And my Registro.hta's code: http://pastebin.com/4qzwL4RC

I don't know what I'm doing bad? Can you explain me why Registro.hta is opening on foreground and not in background?

Thanks.

Upvotes: 0

Views: 1998

Answers (1)

Ansgar Wiechers
Ansgar Wiechers

Reputation: 200373

If you want an HTA to start minimized, you have to set its WINDOWSTATE property to minimize.

Upvotes: 1

Related Questions