aptr@ur-tut.UUCP (The Wumpus) (07/07/86)
I have a very simple question to ask about the enviorment in MS/PC-DOS. How do you check the value of a parameter in the envoirment? And, is there anyway to look at the enviorment as a whole? (i.e. prenv in UN*X) Thanks
cramer@kontron.UUCP (Clayton Cramer) (07/09/86)
> I have a very simple question to ask about the enviorment in MS/PC-DOS. > How do you check the value of a parameter in the envoirment? And, is there > anyway to look at the enviorment as a whole? (i.e. prenv in UN*X) > > Thanks From Microsoft C 3.0, you use the getenv () call to the value of an environment variable. From PC-DOS, you type "set" and it shows you all the environment variables. (This IS in the PC-DOS manual.) Clayton E. Cramer
sandersr@ecn-pc.UUCP (Robert C Sanders) (07/10/86)
In article <483@ur-tut.UUCP> aptr@ur-tut.UUCP writes: >I have a very simple question to ask about the enviorment in MS/PC-DOS. >How do you check the value of a parameter in the envoirment? And, is there >anyway to look at the enviorment as a whole? (i.e. prenv in UN*X) > >Thanks I don't know about individual variables, outside of writing a simple assembly or C program to fetch it using a DOS 21h interupt function. But you can always see all of your environment variables at any DOS prompt by using the command "set" without any arguments. -- Continuing Engineering Education Telecommunications Purdue University ...!ihnp4!pur-ee!pc-ecn!sandersr Let's make like a BSD process, and go FORK-OFF !! -- bob (and "make" a few children while we're at it ...)
jnl@inuxh.UUCP (John Le) (07/10/86)
> I have a very simple question to ask about the enviorment in MS/PC-DOS. > How do you check the value of a parameter in the envoirment? And, is there > anyway to look at the enviorment as a whole? (i.e. prenv in UN*X) > > Thanks How about the command SET. This will display all environment variables you set in your autoexec.bat. i.e. C> set<CR> John N. Le (AT&T IS/CPL Indpls, IN) ihnp4!inuxc!inuxh!jnl
mr@isrnix.UUCP (07/10/86)
In article <483@ur-tut.UUCP>, aptr@ur-tut.UUCP writes: > I have a very simple question to ask about the enviorment in MS/PC-DOS. > How do you check the value of a parameter in the envoirment? And, is there > anyway to look at the enviorment as a whole? (i.e. prenv in UN*X) > > Thanks ]::[ here's a uuencoded version of ENVSIZE.COM: a quick and easy way to increase your current environment size. no more debugged-hacked COMMAND.COM files! to add space to the DOS environment associated with the primary command processor, enter: ENVSIZE N where "N" equals the number of paragraphs you would like to add to the current environment size. the maximum practical limit is 2048 paragraphs, or ~32K. let's hope you won't need more than that. to determine the current environment size using ENVSIZE, enter: ENVSIZE ? which will report something like: Current Environment statistics: Size in paragraphs.............(DEC)...... 10 Size in paragraphs.............(HEX)...... 000A Size in bytes..................(DEC)...... 160 Location of Environment........(Segment).. 52D7 Location of Command Processor..(Segment).. 5216 Current Command Processor is Primary...... YES this program is shareware, courtesy of Team Alpha, 519 Garden Springs Drive, Mount Sterling, Kentucky 40353. --CUT-- begin 777 ENVSIZE.COM MZ;H< M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M 58OL@\3^Z($#BT8$/0( = /H0P"+7@;_=P+H#P19 MB4;^/0 ?@=0Z*L 6>LFN((B4(M>!O]W N@N#8/$!(7 =0^X$ !0Z)4#65#H M80)9ZP/H! "+Y5W#58OLN(0B4.@'!5FXP")0Z/\$6;C^(E#H]P19N#TC4.CO M!%FX>R-0Z.<$6;BK(U#HWP19N-0C4.C7!%FX_R-0Z,\$6;@^)%#HQP19N'TD M4.B_!%FXO210Z+<$6;C\)%#HKP19N#LE4.BG!%FX>B50Z)\$63/ 4.@+#UF+ MY5W#58OL@\3DBT8$/0\ ?0^XM"50Z'X$63/ 4.CJ#EF+1@0] %^#[CH)5#H M9P19,\!0Z-,.6;@0 %#HS0)9B4;L4+@L %#HD@.#Q 2)1NJ%P'0/N!,F4.@[ M!%DSP%#HIPY9BT;L2%"X 0!0Z&T#@\0$B\A1BT;L2%"X P!0Z%L#@\0$60/( MB\% B4;J2%"X P!0Z$8#@\0$B4;H T8$/0 (?C.+1N@] A\#[A-)E#HXP-9 M_W;LZ"(!6;AE)E#HU -9N (*T;HB48$4+B/)E#HP@.#Q 3'1O 2:':*HE& M_HU&\%!0N"$ 4.@G X/$!L=&\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("!3:7IE(&EN('!A<F%G<F%P:',N+BXN+BXN+BXN+BXN M*$1%0RDN+BXN+BX@)60* " @4VEZ92!I;B!P87)A9W)A<&AS+BXN+BXN+BXN M+BXN+BA(15@I+BXN+BXN("4P-'@* " @4VEZ92!I;B!B>71E<RXN+BXN+BXN M+BXN+BXN+BXN+BA$14,I+BXN+BXN("5L9 H ("!,;V-A=&EO;B!O9B!%;G9I M<F]N;65N="XN+BXN+BXN*%-E9VUE;G0I+BX@)3 T> H ("!,;V-A=&EO;B!O M9B!#;VUM86YD(%!R;V-E<W-O<BXN*%-E9VUE;G0I+BX@)3 T> H ("!#=7)R M96YT($-O;6UA;F0@4')O8V5S<V]R(&ES(%!R:6UA<GDN+BXN+BX@ %E%4PH M3D\* H@U<W-S<W-S<W-S<W-S<T S<W-S<W-S<W-S<W-N" * ""S(" @("!% M3E9325I%('9E<B Q+C @(" @(+,@"@ @LRA#*2!#;W!Y<FEG:'0@5$5!3> L M(#$Y.#:S( H (+,@("!!;&P@4FEG:'1S(%)E<V5R=F5D(" @LR * "#4S<W- MS<W-S<W-S<W-S0#-S<W-S<W-S<W-S<V^"@H $ $ M ! 0 ! 0( 0 M M M M M #BL.*S Q,C,T-38W.#E!0D-$148 @(" @ M(" @(" P,# P," @(" @(" @(" @(" @(" @()! 0$! 0$! 0$! 0$! 0$ , M# P,# P,# P,0$! 0$! 0 D)"0D)"0$! 0$! 0$! 0$! 0$! 0$! 0$!0$! M0$! "@H*"@H* @(" @(" @(" @(" @(" @(" @) 0$! ( @+ M "Q\ 5&]O(&UA;GD@87)G<RX "G +( PA"@T 0 ! !O end --CUT-- -- .^. michael regoli /|\ ...ihnp4!inuxc!isrnix!mr '|!|` iu - bloomington <mr@isrnix.UUCP> ...cbosgd!inuxc!isrnix!mr%seismo.CSS.GOV