Page 1 of 2 12>
Topic Options
#41761 - 2003-06-18 04:58 PM Launching a .hta file
impactradio Offline
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 Offline
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. Offline
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 Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
code:
IF INGROUP("HOURLY")
SHELL '%COMSPEC% /c START C:\TEST.HTA'
ENDIF

???

Top
#41765 - 2003-06-18 05:07 PM Re: Launching a .hta file
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
code:
if ingroup('hourly')
shell 'start timekeeper.hta'
endif

See also the FAQ Forum under the RUN/SHELL topic.
_________________________
There are two types of vessels, submarines and targets.

Top
#41766 - 2003-06-18 05:07 PM Re: Launching a .hta file
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
&$*#! [Wink]
Top
#41767 - 2003-06-18 05:09 PM Re: Launching a .hta file
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
wOOt!
Top
#41768 - 2003-06-18 05:10 PM Re: Launching a .hta file
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Best golf score! [Big Grin]
_________________________
There are two types of vessels, submarines and targets.

Top
#41769 - 2003-06-18 05:12 PM Re: Launching a .hta file
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
Yeah, but I think that "Start" requires %COMSPEC% to work. [Wink]
Top
#41770 - 2003-06-18 05:19 PM Re: Launching a .hta file
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Who dares to challenge me!? [Smile] [Smile]
code:
if ingroup('hourly')
run '%COMSPEC% /c start timekeeper.hta'
endif

_________________________
There are two types of vessels, submarines and targets.

Top
#41771 - 2003-06-18 05:25 PM Re: Launching a .hta file
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
the @scriptdir might be required...
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#41772 - 2003-06-18 05:27 PM Re: Launching a .hta file
Shawn Administrator Offline
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 Offline
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
#41774 - 2003-06-18 09:20 PM Re: Launching a .hta file
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
GPO under Windows 2000/XP/2003, otherwise a thrid-party utility that runs in the background. See http://www.windows2000faq.com/Articles/Index.cfm?ArticleID=14857
_________________________
There are two types of vessels, submarines and targets.

Top
#41775 - 2003-06-18 11:08 PM Re: Launching a .hta file
NTDOC Administrator Offline
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/2000


if ingroup('hourly')
run '%COMSPEC% /c timekeeper.hta'
endif

Top
#41776 - 2003-06-18 11:58 PM Re: Launching a .hta file
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
Ron, that looks eerily identical to Jens' second example.
Top
#41777 - 2003-06-19 12:38 AM Re: Launching a .hta file
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11629
Loc: CA
Yep, VERY close, but mine has removed the START command. No need for it.
Top
#41778 - 2003-06-19 12:45 AM Re: Launching a .hta file
Chris S. Offline
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 Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11629
Loc: CA
Well, it does run on NT & > [Eek!]
Top
#41780 - 2003-06-20 12:41 AM Re: Launching a .hta file
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
no it does not.
my w2k does not run it.
neither it works that way if I rename it to .htm

so, you boys go back to drawing board [Razz]
_________________________
!

download KiXnet

Top
Page 1 of 2 12>


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 988 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.076 seconds in which 0.03 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org