Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

windir environment variable

1 view
Skip to first unread message

Chris Jefferies

unread,
Feb 20, 1998, 3:00:00 AM2/20/98
to

Hi,

I need to write a batch file to add some lines to WIN.INI, and it needs to
run on PCs which may have been set up in various ways. I want to use
something like

copy p:\somefile.xyz %windir%

This works fine in NT, but because the windir variable is in lower case it
*doesn't* work for 3.11 over MS-DOS. Is there any way (short of testing in
the batch file and creating another variable myself) to get around this?

If anyone out there knows, I'd be grateful.

Chris
--
Chris Jefferies, IACR-Long Ashton Research Station
Work - chris.j...@bbsrc.ac.uk Home - ch...@stowey.demon.co.uk
Web - http://www.stowey.demon.co.uk/

0 new messages