Re: Writing to the Environment ?
- From: Dr John Stockton <jrs@xxxxxxxxxxxxxxxxxx>
- Date: Thu, 23 Jun 2005 15:34:51 +0100
JRS: In article <OivGXl1dFHA.2688@xxxxxxxxxxxxxxxxxxxx>, dated Wed, 22
Jun 2005 20:33:26, seen in news:microsoft.public.scripting.wsh, Torgeir
Bakken (MVP) <Torgeir.Bakken-spam@xxxxxxxxx> posted :
>Dr John Stockton wrote:
>
>> I know, more or less, how to write a script A.js or B.vbs, to be
>> executed by CSCRIPT at a command prompt in a MS-DOS box, that can
>> read the values of extant environment variables.
>>
>> Is it possible to write such a script that will change the extant
>> environment, so that the difference can be seen by a SET command
>> following the CSCRIPT - and, if so, how?
>>
>> I'm presently using Win98.
>To do master environment changes on Win9x, use the Microsoft utility
>WINSET.EXE which is on the OS CD-ROM (for example CD-DRIVE\tools
>\reskit\scrpting\winset.exe for Win98)
>
>and
>
>How to Set Global Environment Variables in Windows 95
>http://support.microsoft.com/kb/140574/
>
>Note this one (from the KB article above):
>
><quote>
>Note that running the Winset.exe tool at a command prompt has no
>effect in the current instance of the command prompt. A new command
>prompt must be launched before the change is apparent.
></quote>
I don't need those, AFAICS; from your description, I can do at least as
well in practice with my own external tools in Win98 - program STOW, for
example, using unit JRS_ENVU, via sig line 3.
But I don't know how to do it from within CSCRIPT code.
--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 MIME. ©
Web <URL:http://www.merlyn.demon.co.uk/> - FAQqish topics, acronyms & links.
PAS EXE TXT ZIP via <URL:http://www.merlyn.demon.co.uk/programs/00index.htm>.
Do not Mail News to me. Before a reply, quote with ">" or "> " (SoRFC1036)
.
- Follow-Ups:
- Re: Writing to the Environment ?
- From: Michael Harris \(MVP\)
- Re: Writing to the Environment ?
- References:
- Writing to the Environment ?
- From: Dr John Stockton
- Re: Writing to the Environment ?
- From: Torgeir Bakken \(MVP\)
- Writing to the Environment ?
- Prev by Date: RE: add contact to active directory
- Next by Date: How do I pass parameters in a WSH file?
- Previous by thread: Re: Writing to the Environment ?
- Next by thread: Re: Writing to the Environment ?
- Index(es):
Relevant Pages
|