#102744 - 2003-07-11 08:44 AM
Running a command from kix...
|
RichardG_dup1
Fresh Scripter
Registered: 2003-07-11
Posts: 16
Loc: Melbourne, Australia
|
OK, I have read all about the Shell vs Run command but I have another question.
I am running a script during logon which needs to run a batch file. I want the script to continue when the batch file is executed.
My problem is... The batch file takes a while to complete and even though I'm "run"ning the batch file from the kix script it still pauses at the end waiting for the batch file to finish.
Is there a way to kick off a batch file and forget about it?
Thanks
Rich.
|
|
Top
|
|
|
|
#102746 - 2003-07-11 09:11 AM
Re: Running a command from kix...
|
RichardG_dup1
Fresh Scripter
Registered: 2003-07-11
Posts: 16
Loc: Melbourne, Australia
|
Yeah you are right, the script does not stop until it reaches the end when I assume it sits there waiting for the batch file I called finishes... (I am calling the batch file early in the script)
I have tried %COMSPEC% as well as just running the batch file.
Thanks for listening Lonkero
|
|
Top
|
|
|
|
#102751 - 2003-07-11 09:27 AM
Re: Running a command from kix...
|
RichardG_dup1
Fresh Scripter
Registered: 2003-07-11
Posts: 16
Loc: Melbourne, Australia
|
Just played around with the START option with no success. I know in VB if you "shell" it runs without waiting, I wonder if I could just run a vbs to do the job...
Problem is I'm in a ...very... mixed enviro
|
|
Top
|
|
|
|
#102754 - 2003-07-11 09:35 AM
Re: Running a command from kix...
|
RichardG_dup1
Fresh Scripter
Registered: 2003-07-11
Posts: 16
Loc: Melbourne, Australia
|
Thanks for the help guys.
I started off with a kix script to do the job but couldn't work out how to set it going without kix waiting for it, hence why I thought a batch file would be easier.
I have never played with wkix32 what is the diff? And is it support from 9x?
R
|
|
Top
|
|
|
|
#102756 - 2003-07-11 09:42 AM
Re: Running a command from kix...
|
RichardG_dup1
Fresh Scripter
Registered: 2003-07-11
Posts: 16
Loc: Melbourne, Australia
|
Cheers NTDOC thats a nice offer. Well its simple really:
The main script is the logon script mapping drives, setting time, etc etc (for about 7000 users)
I want to do a dir c:\*.exe /s/b ><servername>\blah$\softwareaudit
which as you can guess can take a wee while. So I thought, why not execute a script that does the DIR in the background after the main script finishes.
Thats it really...
|
|
Top
|
|
|
|
#102758 - 2003-07-11 09:52 AM
Re: Running a command from kix...
|
RichardG_dup1
Fresh Scripter
Registered: 2003-07-11
Posts: 16
Loc: Melbourne, Australia
|
Hi Jochen,
Yep no pause or get commands to be seen...
On a different note, I converted my test script to use WKIX32.EXE and now the script hangs at the end, does not even seem to call my batch file.
Hmm its getting late here, maybe thats why
|
|
Top
|
|
|
|
#102759 - 2003-07-11 09:58 AM
Re: Running a command from kix...
|
RichardG_dup1
Fresh Scripter
Registered: 2003-07-11
Posts: 16
Loc: Melbourne, Australia
|
Here are the actual details:
Line in script: Run "%COMSPEC% /C C:\SOFTWARE.BAT " + @WKSTA
Batch file SOFTWARE.BAT @ECHO OFF DIR C:\*.EXE /B/S >\\CORPSUPPORT\RAW$\SOFTWARE\%1.txt
|
|
Top
|
|
|
|
#102761 - 2003-07-11 10:01 AM
Re: Running a command from kix...
|
RichardG_dup1
Fresh Scripter
Registered: 2003-07-11
Posts: 16
Loc: Melbourne, Australia
|
I assume you are talking WMI?
|
|
Top
|
|
|
|
#102763 - 2003-07-11 10:05 AM
Re: Running a command from kix...
|
RichardG_dup1
Fresh Scripter
Registered: 2003-07-11
Posts: 16
Loc: Melbourne, Australia
|
Thanks for everyones advice, I'll keep looking and let you know.
R
|
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 883 anonymous users online.
|
|
|