Page 1 of 1 1
Topic Options
#20665 - 2002-04-26 08:27 AM RUN trouble
Anonymous
Unregistered


For some unknown reason the run command is not working in my logon script. The script maps a P drive and then executes..

RUN 'P:\vetauto\setup32.exe /waitstart=20' but for some unknown reason this doesnt work. I can execute the program successfully from the command line.

Waitstart 20 is a switch for the executable that tells the program to wait 20 seconds after initialising to properly execute. Any suggested workarounds or reasons why this isn't working? Thanks

Top
#20666 - 2002-04-26 11:20 AM Re: RUN trouble
Dean R Offline
Starting to like KiXtart

Registered: 2002-03-15
Posts: 115
Loc: Ireland, but Im an Aussie
Can you post the rest of the script please [Big Grin]
_________________________
-------------------------------- When you can take this stone from my hand Gwasshoppa you are read... *yoink* Gwasshoppa? Gwasshoppa? Where did you go? ---------------------------------

Top
#20667 - 2002-04-27 12:16 AM Re: RUN trouble
Anonymous
Unregistered


Try:

RUN 'P:\vetauto\setup32.exe "/waitstart=20"'

It helps in some of my scripts [Smile]

Top
#20668 - 2002-04-28 03:36 PM Re: RUN trouble
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

Welcome to the board.

Try also:

RUN '%comspec% /c start /wait p:\vetauto\setup32.exe /waitstart=20'

or

RUN '%comspec% /c p:\vetauto\setup32.exe /waitstart=20'

greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#20669 - 2002-05-01 05:52 AM Re: RUN trouble
Anonymous
Unregistered


Ok guys, I tried all of your suggestions, thanks. Unfortunetly to no avail. It's running on a PDC NT Server, replicating to one BDC. I'm about to post the script but before I do, I must warn you it's pretty novice, but it works (most of it)...

BREAK ON ;(re)set Ctrl-C/Break handling
SMALL
? "USER INFORMATION"
?
AT (4,4)
"HI, @userid"
?
AT (6,4)
@FULLNAME ;full name of current user
?
AT (8,4)
@COMMENT ;user comment in User Manager
?
SLEEP 1
CLS
?
?
? "COMPUTER INFORMATION"
?
? "MAC Address of your Network Card:"
? @ADDRESS
?
? "Netbios Computer Name:"
? @WKSTA
?
SLEEP 1
CLS
?
?
? "NETWORK INFORMATION"
?
? "Logon Domain Name:"
? @DOMAIN
?
? "Logon Server:"
? @LSERVER ;logon server
?
? "Your Password is " @PWAGE " Days Old."
? "The Maximum Password Age is " @MAXPWAGE " Days."
? "You Are Logged on With " @PRIV " Privileges."
?
SLEEP 1
CLS
?
?
USE U: "\\AUSOPEN1\@userid"
USE T: "\\AUSOPEN1\USERS"
USE P: "\\AUSOPEN1\PUBLIC"
?
IF INGROUP ("AODB") = 1
?"User is member of AOBD"
SLEEP 3
SHELL '%comspec% /c xcopy p:\ausopen\*.* c:\ausopen\*.* /d'
ENDIF
?
IF INGROUP ("NWGateway") = 1
USE O: "\\AUSOPEN1\ODRIVE"
ENDIF

IF INGROUP("Commercial") = 1
USE F: "\\AUSOPEN1\COMMERCIAL"
ENDIF

IF INGROUP ("Communications") = 1
USE F: "\\AUSOPEN1\COMMUNICATIONS"
ENDIF

IF INGROUP ("Corporates") = 1
USE F: "\\AUSOPEN1\CORPORATES"
ENDIF

IF INGROUP ("Marketing") = 1
USE F: "\\AUSOPEN1\MARKETING"
ENDIF

IF INGROUP ("AOIT") = 1
USE E: "\\TAINTRA\E"
USE S: "\\AUSOPEN1\AOSETUP"
USE F: "\\AUSOPEN1\IT"
USE T: "\\AUSOPEN1\USERS"
USE G: "\\AUSOPEN1\DEPARTMENTS"
USE Y: "\\AUSOPEN1\FROOT"
USE H: "\\TAINTRA\SOFTWARE"
ENDIF

IF INGROUP ("AdminDpt") = 1
USE F: "\\AUSOPEN1\ADMINISTRATION"
ENDIF

IF INGROUP ("Operations") = 1
USE F: "\\AUSOPEN1\OPERATIONS"
ENDIF

IF INGROUP ("Ticketing")= 1
USE F: "\\AUSOPEN1\TICKETING"
ENDIF

IF INGROUP ("Vision") = 1
USE W: "\\FINANCESQL\SUNDATA"
ENDIF

IF INGROUP ("Charity") = 1
USE L: "\\TAINTRA\CHARITY"
ENDIF

IF INGROUP ("CorpBanking") = 1
USE Q: "\\FINANCESQL\CORPORATE"
ENDIF

IF INGROUP ("AOShopBanking") = 1
USE Q: "\\FINANCESQL\AOSHOP"

RUN '%comspec% /c /start /wait P:\VETAUTO\SETUP32.EXE /waitstart=20'

SHELL '%comspec% /c xcopy p:\hosts\*.* c:\hosts\*.* /d'

SHELL '%comspec% /c xcopy p:\fonts\placmcc_.ttf c:\windows\fonts\placmcc_.ttf /d'

$rs = writevalue ( "Software\Microsoft\Internet Explorer\Main", "Start Page", "http://10.21.0.223", "REG_SZ" )





SLEEP 2

EXIT

[ 01 May 2002, 05:53: Message edited by: dcell ]

Top
#20670 - 2002-05-01 03:31 PM Re: RUN trouble
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
I think your problem is with the syntax. Near the bottom you have a segment that is:

code:
IF INGROUP ("AOShopBanking") = 1
USE Q: "\\FINANCESQL\AOSHOP"

Remember to add an ENDIF for every IF.

Brian

Top
#20671 - 2002-05-02 01:04 AM Re: RUN trouble
Anonymous
Unregistered


Everything seems to work now. As simple as an ENDIF. Thankyou very much for your help.
Top
#20672 - 2002-05-02 03:48 AM Re: RUN trouble
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
dcell,

Glad you found the solution to your problem, however...

This solution can be solved by you in the future by using the following FAQ under - How do we check and format code for scripts?.

Thanks!

- Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#20673 - 2002-05-21 11:12 AM Re: RUN trouble
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
ear,

For verification of script we advice to use our kixstrip tool.
It verifies all kind of possible problems.

Our call was: kixstrip input.kix output.kix /block_check

Output of our call:
code:
 BREAK ON ;(re)set Ctrl-C/Break handling
SMALL
? "USER INFORMATION"
?
At (4,4) "HI, @userid"
?
At (6,4) @fullname ;full name of current user
?
At (8,4) @comment ;user comment in User Manager
?
SLEEP 1
CLS
?
?
? "COMPUTER INFORMATION"
?
? "MAC Address of your Network Card:"
? @address
?
? "Netbios Computer Name:"
? @wksta
?
SLEEP 1
CLS
?
?
? "NETWORK INFORMATION"
?
? "Logon Domain Name:"
? @domain
?
? "Logon Server:"
? @lserver ;logon server
?
? "Your Password is " @pwage " Days Old."
? "The Maximum Password Age is " @maxpwage " Days."
? "You Are Logged on With " @priv " Privileges."
?
SLEEP 1
CLS
?
?
USE u: "\\AUSOPEN1\@userid"
USE t: "\\AUSOPEN1\USERS"
USE p: "\\AUSOPEN1\PUBLIC"
?
IF InGroup ("AODB") = 1
?"User is member of AOBD"
SLEEP 3
SHELL '%comspec% /c xcopy p:\ausopen\*.* c:\ausopen\*.* /d'
ENDIF
?
IF InGroup ("NWGateway") = 1
USE o: "\\AUSOPEN1\ODRIVE"
ENDIF

IF InGroup("Commercial") = 1
USE f: "\\AUSOPEN1\COMMERCIAL"
ENDIF

IF InGroup ("Communications") = 1
USE f: "\\AUSOPEN1\COMMUNICATIONS"
ENDIF

IF InGroup ("Corporates") = 1
USE f: "\\AUSOPEN1\CORPORATES"
ENDIF

IF InGroup ("Marketing") = 1
USE f: "\\AUSOPEN1\MARKETING"
ENDIF

IF InGroup ("AOIT") = 1
USE e: "\\TAINTRA\E"
USE s: "\\AUSOPEN1\AOSETUP"
USE f: "\\AUSOPEN1\IT"
USE t: "\\AUSOPEN1\USERS"
USE g: "\\AUSOPEN1\DEPARTMENTS"
USE y: "\\AUSOPEN1\FROOT"
USE h: "\\TAINTRA\SOFTWARE"
ENDIF

IF InGroup ("AdminDpt") = 1
USE f: "\\AUSOPEN1\ADMINISTRATION"
ENDIF

IF InGroup ("Operations") = 1
USE f: "\\AUSOPEN1\OPERATIONS"
ENDIF

IF InGroup ("Ticketing")= 1
USE f: "\\AUSOPEN1\TICKETING"
ENDIF

IF InGroup ("Vision") = 1
USE w: "\\FINANCESQL\SUNDATA"
ENDIF

IF InGroup ("Charity") = 1
USE l: "\\TAINTRA\CHARITY"
ENDIF

IF InGroup ("CorpBanking") = 1
USE q: "\\FINANCESQL\CORPORATE"
ENDIF

IF InGroup ("AOShopBanking") = 1
USE q: "\\FINANCESQL\AOSHOP"

RUN '%comspec% /c /start /wait P:\VETAUTO\SETUP32.EXE /waitstart=20'

SHELL '%comspec% /c xcopy p:\hosts\*.* c:\hosts\*.* /d'

SHELL '%comspec% /c xcopy p:\fonts\placmcc_.ttf c:\windows\fonts\placmcc_.ttf /d'

$rs = WriteValue ( "Software\Microsoft\Internet Explorer\Main", "Start Page", "http://10.21.0.223", "REG_SZ" )

SLEEP 2

EXIT


;($begin)
;
; tue 21-may-2002 09:56:56 (kix 4.10 vs 3.04e)
;
;Informative KIXSTRIP: input=125 output=125 skip=0
;
;Warning KIXSTRIP: 1 error in block structure. missing statement(s).
; - do:until [0:0]
; - for|each:in|to:step|next [0|0:0|0:0|0]
; - function:endfunction [0:0]
; -ERROR- - if:else:endif [14:0:13]
; - select:case:endselect [0:0:0]
; - while:loop [0:0]
;Warning KIXSTRIP: some lines contains errors or possible errors.
;Informative KIXSTRIP: 14 block_structures found.
;Informative KIXSTRIP: no UDF's found.
;Informative KIXSTRIP: no labels found.
;Summary KIXSTRIP: BREAK CALL DEBUG DISPLAY ENDFUNCTION EXECUTE EXIT FUNCTION GET GETS GOSUB GOTO OLExxx PLAY QUIT RETURN RUN SHELL SLEEP THEN USE
;Informative KIXSTRIP: 1 BREAK
;Informative KIXSTRIP: 1 EXIT
;Informative KIXSTRIP: 1 RUN
;Informative KIXSTRIP: 3 SHELL
;Informative KIXSTRIP: 5 SLEEP
;Informative KIXSTRIP: 22 USE
;
;($end)
;($begin)
;
;
;($end)

greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
Page 1 of 1 1


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

Who's Online
0 registered and 302 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.109 seconds in which 0.078 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