🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.msdos.programmer
Article #1088

Re: Help Required with Dos variables

#1088
From: Rich Holland
Date: Thu, 07 Jan 1993 19:35
25 lines
1309 bytes
Jon Freivald <jaf@jaflrn.UUCP> writes:

>macdonak@newton.ccs.tuns.ca (Kevin MacDonald) writes:

>> Is there any way to display the contents of a single DOS variable?
>> I know you can display all current variables by typing SET, but there
>> doesn't appear to be any way to display variables individually.

Sure it does!

>DOS batch file:
>    echo %USER% > logfile

Yeah, those work, but then you have 'logfile' to deal with.  What's wrong
with this:  'SET | FIND USER'

He's not trying to copy USER to NEWUSER, or he could use:
SET NEWUSER=%USER%


-- 
Rich Holland              | INTERNET: holland@matt.ksu.ksu.edu
100 Jardine Terr., Apt A7 | BITNET  : holland@ksuvm
Manhattan, KS  66502-3357 | UUCP    : ...!rutgers!matt.ksu.ksu.edu!holland
char*p="char*p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
Technical Details
Message-ID: <1ii0moINN62a@matt.ksu.ksu.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!matt.ksu.ksu.edu!news
References: <1993Jan4.160029.26833@newton.ccs.tuns.ca> <L6eZwB1w164w@jaflrn.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!matt.ksu.ksu.edu!news
From: holland@matt.ksu.ksu.edu (Rich Holland)
Newsgroups: alt.msdos.programmer
Subject: Re: Help Required with Dos variables
Date: 7 Jan 1993 13:35:52 -0600
Organization: Kansas State University
Lines: 25
Message-ID: <1ii0moINN62a@matt.ksu.ksu.edu>
References: <1993Jan4.160029.26833@newton.ccs.tuns.ca> <L6eZwB1w164w@jaflrn.UUCP>
NNTP-Posting-Host: matt.ksu.ksu.edu