#176820 - 2007-06-08 07:44 AM
Get Batch Info
|
ClientMaster
Fresh Scripter
Registered: 2005-01-19
Posts: 46
Loc: Tokyo, Japan
|
I am running a kix batch as logon on all of my client pcs. this kix batch is started by using a DOS batch. I am trying to get the kix batch to retrieve the DOS batch name and log it. Any ideas how I can get the logonscript DOS batch name?
_________________________
How can you know good, unless you experience bad.
|
|
Top
|
|
|
|
#176823 - 2007-06-08 09:51 AM
Re: Get Batch Info
[Re: ClientMaster]
|
Richard H.
Administrator
   
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
It depends on why you need to do it, but the easiest way is to pass the value on the command line.
For example, in your batch file:
REM *********************************
REM * THIS IS THE XYZLOGON.BAT FILE *
REM *********************************
\\server\path\kix32.exe \\server\path\logon.kix $sBatchFile="XYZLOGON.BAT"
Then you can pick up and display the value in KiXtart:
"This script was called by batch file '"+$sBatchFile+'"'+@CRLF
[edit]Allen was faster, and the %0 is simpler. Tch, must be getting old.[/edit]
|
|
Top
|
|
|
|
#176892 - 2007-06-11 03:45 PM
Re: Get Batch Info
[Re: Sealeopard]
|
Arend_
MM club member
   
Registered: 2005-01-17
Posts: 1896
Loc: Hilversum, The Netherlands
|
%0 for the batch, @ScriptName for your script
|
|
Top
|
|
|
|
#176905 - 2007-06-12 04:43 AM
Re: Get Batch Info
[Re: Arend_]
|
ClientMaster
Fresh Scripter
Registered: 2005-01-19
Posts: 46
Loc: Tokyo, Japan
|
apronk, Sorry, I am not sure what you mean? Could you explain?
_________________________
How can you know good, unless you experience bad.
|
|
Top
|
|
|
|
#176906 - 2007-06-12 09:07 AM
Re: Get Batch Info
[Re: ClientMaster]
|
Arend_
MM club member
   
Registered: 2005-01-17
Posts: 1896
Loc: Hilversum, The Netherlands
|
Like this:
@ScriptName+" was called by batch file '"+$sBatchFile+'"'+@CRLF
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
1 registered
(Allen)
and 1607 anonymous users online.
|
|
|