#155919 - 2006-02-02 03:19 AM
Re: Translate it to KIX?
|
kingfisher
Fresh Scripter
Registered: 2005-12-28
Posts: 28
|
To Mart: Do you mean my script can not been transferred to Kix?
To Jooel:You got it.And is there a kix sentence to run the "*.wsf", I tried many times, but failed.
|
|
Top
|
|
|
|
#155921 - 2006-02-02 10:28 AM
Re: Translate it to KIX?
|
kingfisher
Fresh Scripter
Registered: 2005-12-28
Posts: 28
|
Mark, if using kix32,is it possible to hide the console and it just stays at background? Sorry for my weak question, I am a stranger:(.
|
|
Top
|
|
|
|
#155925 - 2006-02-04 08:39 AM
Re: Translate it to KIX?
|
kingfisher
Fresh Scripter
Registered: 2005-12-28
Posts: 28
|
I have such a code: Code:
;The scheduled time, it also can be replaced with a random time $AuditTime="14:30:00" ;The time user logon on PC $CurrentTime=@Time ;Getting the detail number to determine how many seconds script will sleep $Hours=Cint(SubStr($AuditTime,1,2))-Cint(SubStr($CurrentTime,1,2)) $Minutes=Cint(SubStr($AuditTime,4,2))-Cint(SubStr($CurrentTime,4,2)) $Seconds=Cint(SubStr($AuditTime,7,2))-Cint(SubStr($CurrentTime,7,2)) ;Work out how many seconds $SleepTime=$Hours*3600+$Minutes*60+$Seconds ;Run a program Run "Notepad.exe"
I set it as logon script, and as Mart said, I use wkix32.exe, I don't know why the command line displays still and waits for the time coming. But if I just run the script, the command line didnot be shown and wkix32 stayed at background. Why? How can I set it to logon script? Is there something I forgot to do?
Thanks in advance!
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 1376 anonymous users online.
|
|
|