Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Clipper > Re: Environment...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 11 of 13 Topic 3878 of 3953
Post > Topic >>

Re: Environment Space in XP

by Alan Secker <alan@[EMAIL PROTECTED] > Apr 9, 2008 at 09:46 AM

Alan Secker wrote:

>> Just to guild the lilly a bit...
>> When a batch file is called, a new invocation of cmd.exe or
>> command.com is executed with *a copy* of the environment as it existed
>> at the time of the call.  Any changes to the environment of the batch
>> file, affect only the batch file (and any children it calls), and are
>> discarded by the OpSys when the batch file terminates.  Essentially
>> all the environment variables are passed "by value", rather than "by
>> reference".
>> 
>> Just so the reason why this did not work is clear...
>> 
>> David A. Smith
> 
> I have just realised why I was barking up the wrong tree. XP handles
> environment variables differently from Win9x. So although the path was
> plugged into AUTOEXEC.NT the other path variables for INCLUDE, LIB etc
> were entered where they should have been, in the dialog box set aside
for
> doing just that:
> 
> 1) right-click My computer
> 2) Select Properties->Advanced->Environment Variables
> 3) In the non-system zone (the upper one), select new and plug 'em in
one
> after the other.
> 
> Although I kept ploughing through Google I had been using the wrong
> string.
> 
> Thanks everyone for all your help.
> 
> Alan

I should have added that the PATH statement has been moved from the
AUTOEXEC.NT file to the environment area above, and that I switched back
to
cmd.exe which has the doskey features built in. I hope the this is useful
to anyone else having the same problem.

Alan
 




 13 Posts in Topic:
Environment Space in XP
Alan Secker <alan@[EMA  2008-04-05 22:34:25 
Re: Environment Space in XP
"Ron Pinkas" &l  2008-04-05 17:53:14 
Re: Environment Space in XP
Alan Secker <alan@[EMA  2008-04-06 21:02:35 
Re: Environment Space in XP
"N:dlzc D:aol T:com   2008-04-06 13:46:00 
Re: Environment Space in XP
Alan Secker <alan@[EMA  2008-04-07 22:10:02 
Re: Environment Space in XP
"Stephen Quinn"  2008-04-08 01:06:20 
Re: Environment Space in XP
Alan Secker <alan@[EMA  2008-04-08 18:44:59 
Re: Environment Space in XP
"AUGE_OHR" <  2008-04-08 22:54:42 
Re: Environment Space in XP
dlzc <dlzc1@[EMAIL PRO  2008-04-08 07:21:36 
Re: Environment Space in XP
Alan Secker <alan@[EMA  2008-04-08 19:32:50 
Re: Environment Space in XP
Alan Secker <alan@[EMA  2008-04-09 09:46:37 
Re: Environment Space in XP
aardvark <aardvark@[EM  2008-04-06 20:40:55 
Re: Environment Space in XP
"Stephen Quinn"  2008-04-07 05:08:08 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Jul 9 2:04:22 CDT 2008.