#41761 - 2003-06-18 04:58 PM
Launching a .hta file
impactradio
Fresh Scripter
Registered: 2003-05-27
Posts: 22
Loc: Washington, DC
I have a timekeeper program that we need to launch at login. it is called timekeeper.hta. How would I go about launching? I am a toatl newbie, and have a busy day ahead, and figured someone with a vast knowledge could tell me in 1 minute how to do this. The file is located in the same directory as the kixtart script...
_________________________
Help Me!!!
Top
#41762 - 2003-06-18 05:00 PM
Re: Launching a .hta file
impactradio
Fresh Scripter
Registered: 2003-05-27
Posts: 22
Loc: Washington, DC
I also only want it to launch if a user is in the group "hourly".
_________________________
Help Me!!!
Top
#41763 - 2003-06-18 05:06 PM
Re: Launching a .hta file
Chris S.
MM club member
Registered: 2002-03-18
Posts: 2368
Loc: Earth
code: If InGroup("HOURLY") Shell '%COMSPEC% /c Start '+@SCRIPTDIR+'\timekeeper.hta' EndIf
Top
#41764 - 2003-06-18 05:07 PM
Re: Launching a .hta file
Shawn
Administrator
Registered: 1999-08-13
Posts: 8611
code: IF INGROUP("HOURLY") SHELL '%COMSPEC% /c START C:\TEST.HTA' ENDIF ???
Top
#41766 - 2003-06-18 05:07 PM
Re: Launching a .hta file
Shawn
Administrator
Registered: 1999-08-13
Posts: 8611
&$*#!
Top
#41769 - 2003-06-18 05:12 PM
Re: Launching a .hta file
Chris S.
MM club member
Registered: 2002-03-18
Posts: 2368
Loc: Earth
Yeah, but I think that "Start" requires %COMSPEC% to work.
Top
#41771 - 2003-06-18 05:25 PM
Re: Launching a .hta file
Radimus
Moderator
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
the @scriptdir might be required...
Top
#41772 - 2003-06-18 05:27 PM
Re: Launching a .hta file
Shawn
Administrator
Registered: 1999-08-13
Posts: 8611
For anyone looking for a HTA to test:code: <HTML> <HEAD> <TITLE> Welcome to the DevX CD Launcher </TITLE> <HTA:APPLICATION APPLICATIONNAME="CD Launcher" MAXIMIZEBUTTON="no" MINIMIZEBUTTON="no" SINGLEINSTANCE="yes" SCROLL="no" /> </HEAD> </HTML> -Shawn [ 18. June 2003, 17:28: Message edited by: Shawn ]
Top
#41773 - 2003-06-18 09:12 PM
Re: Launching a .hta file
impactradio
Fresh Scripter
Registered: 2003-05-27
Posts: 22
Loc: Washington, DC
Thanks everyone... Now I need to find a way to launch it on shutdown as well.... Any ideas?
_________________________
Help Me!!!
Top
#41775 - 2003-06-18 11:08 PM
Re: Launching a .hta file
NTDOC
Administrator
Registered: 2000-07-28
Posts: 11629
Loc: CA
Time to beat Jen's Golf score by a little. I have tested this on my XP system and it works fine. Have not tested on NT/2000if ingroup ('hourly' )
run '%COMSPEC% /c timekeeper.hta'
endif
Top
#41778 - 2003-06-19 12:45 AM
Re: Launching a .hta file
Chris S.
MM club member
Registered: 2002-03-18
Posts: 2368
Loc: Earth
Doh. Missed that somehow. How about this, then...code: if ingroup('hourly') run 'cmd /c timekeeper.hta' endif ...for an even lower score (nevermind the fact it won't run on Win 9x)!
Top
#41779 - 2003-06-19 02:36 AM
Re: Launching a .hta file
NTDOC
Administrator
Registered: 2000-07-28
Posts: 11629
Loc: CA
Well, it does run on NT & >
Top
Moderator: Jochen , Allen , Radimus , Glenn Barnas , ShaneEP , Ruud van Velsen , Arend_ , Mart
1 registered
(Allen )
and 675 anonymous users online.