Not entirely true I believe as I use a variable set only by the
unattended script in one of my batch files:

// Start Script

:: Install Office dependant on OS
GOTO %WINVER%

:win2ksp4
todo.pl office2k.bat
GOTO END

:winxpsp2
todo.pl office23.bat
GOTO END

:END 

// End Script


Regards
Barry

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Gerhard Hofmann
Sent: 08 September 2005 10:02
To: [email protected]
Subject: Re: [Unattended] Use %WINLANG% in Scripts

Rafal Welk wrote:
> I want to use the %WINLANG% in scripts, but i get no answer... like
this:
> 
> if %WINLANG%==DEU goto GERMAN
> 
> but when i make that with todo.pl, like this:
> 
> todo.pl "echo %WINLANG%"
> todo.pl --go
> 
> I get a answer! Can i use %WINLANG% in scripts ?
> 

When running "set" command in a DOS box you will recognize that WINLANG
is not an operating system variable.

I think you can use it in your .bat files, but you will have to wrap a
   todo.pl "..."
around any command using WINLANG.

Regards
Gerhard



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle
Practices Agile & Plan-Driven Development * Managing Projects & Teams *
Testing & QA Security * Process Improvement & Measurement *
http://www.sqe.com/bsce5sf
_______________________________________________
unattended-info mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unattended-info

_____________________________________________________________________
************************************************************************
****
This message has been checked for all known viruses by the Cable &
Wireless E-mail Virus Protection service, powered by MessageLabs.
************************************************************************
****

****************************************************************************
http://www.heinz.com
This email is not intended to create a contract or an offer of acceptance or 
other legally binding commitment, unless that is expressly stated to be the 
case in the email. If the email does expressly state that a contract is 
created, then any contract for sale of goods will (unless expressly stated 
otherwise) be subject to the relevant H.J. Heinz's Standard Conditions of Sale 
applicable to that type of goods which are set out at www.heinzcustomers.co.uk

This email and any attachments are confidential and solely for the use of the 
intended recipient. They may contain material protected by legal professional 
or other privilege. If you are not the intended recipient or the person 
responsible for delivering to the intended recipient, you are not authorised to 
and must not disclose, copy, distribute or retain this email or its 
attachments. Although this email and its attachments are believed to be free of 
any virus or other defect, it is the responsibility of the recipient to ensure 
that they are virus free and no responsibility is accepted by the company for 
any loss or damage arising from receipt or use thereof.

This message has been checked for all known viruses by the Cable & Wireless
E-mail Virus Protection service, powered by MessageLabs.

****************************************************************************


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
unattended-info mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unattended-info

Reply via email to