Page 1 of 1 1
Topic Options
#101641 - 2003-05-29 01:57 PM Script execution --> Desktop
BriGuy Offline
Fresh Scripter

Registered: 2003-04-17
Posts: 19
Loc: Canada
Is there anyway to ensure that my script has finished running before the desktop icons, taskbar, etc. load on the desktop?

Currently, users are able to start apps and open files locally before the script has finished executing. This is no good as sometimes we have important info to display.

I would like to have my script complete executing and then continue to load the desktop, etc.

Any ideas? [Confused]

Top
#101642 - 2003-05-29 02:06 PM Re: Script execution --> Desktop
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
code:
$RegKey="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\winlogon"
If $OS="WinNT"
$RC=WriteValue($RegKey,"RunLogonScriptSync","1","REG_DWORD")
Endif



[ 29. May 2003, 14:07: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#101643 - 2003-05-29 02:22 PM Re: Script execution --> Desktop
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Documented in the FAQ Forum under W2k/XP - Keep the Window visible on login?

HKEY_LOCAL_MACHINE will require administrative privileges under Windows NT/2000/XP/2003 in order to write to it, alternatively write to HKEY_CURRENT_USER.

[ 29. May 2003, 14:24: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#101644 - 2003-05-29 03:13 PM Re: Script execution --> Desktop
BriGuy Offline
Fresh Scripter

Registered: 2003-04-17
Posts: 19
Loc: Canada
Howard... this only works with W2k/XP?
Any ideas if i have a mix mode network? Ranging from Windows 95 to Windows XP.

Essentially i want to pause the workstation from booting, until the script is finished running.

Top
#101645 - 2003-05-29 03:20 PM Re: Script execution --> Desktop
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
RunLoginScriptSync=1 works for all operating systems, however the 'keep visible' issue is particular to Windows 2000/XP/2003.
_________________________
There are two types of vessels, submarines and targets.

Top
#101646 - 2003-05-29 09:08 PM Re: Script execution --> Desktop
BriGuy Offline
Fresh Scripter

Registered: 2003-04-17
Posts: 19
Loc: Canada
is this "RunLoginSync=1" acommand that i just type at the top of my script... cause it causes an error and the scropt does not continue running.

HELP !!!!

Top
#101647 - 2003-05-29 09:13 PM Re: Script execution --> Desktop
BriGuy Offline
Fresh Scripter

Registered: 2003-04-17
Posts: 19
Loc: Canada
forget it... just figured it out i think... i'll let you know

Thanks!

Top
#101648 - 2003-06-02 07:36 PM Re: Script execution --> Desktop
BriGuy Offline
Fresh Scripter

Registered: 2003-04-17
Posts: 19
Loc: Canada
Works great.

THANKS!

Top
Page 1 of 1 1


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

Who's Online
0 registered and 1046 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.049 seconds in which 0.033 seconds were spent on a total of 12 queries. Zlib compression enabled.

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