Computing.Net > Forums > Programming > SET Command in DOS or XP CMD

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

SET Command in DOS or XP CMD

Reply to Message Icon

Name: colmite
Date: August 2, 2005 at 07:35:59 Pacific
OS: windowsXP
CPU/Ram: 2gig ram 3.6ghz
Comment:

HI there,
I am trying to create a variable that will be read later on using the following command:

Set INSTALLS=installed apps

if I then do a SET I can see the variable I just put, however if I close this cmd window and then re open and go to set, the viarable is no longer there.

can someone let me know how to make this variable stay? also can some one let me know how ot delete this string later on.

thanks a bunch

thx



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: August 2, 2005 at 08:03:16 Pacific
Reply:

I don't think it's possible for a var set to stay stuck once the command shell is exited, whether it's cmd.exe or command.com.


M2


If at first you don't succeed, you're about average.


0

Response Number 2
Name: StuartS
Date: August 2, 2005 at 11:03:33 Pacific
Reply:

Go to System Properties > Advanced > Environmental Variables. You should be able to permanently set the variable there.

Stuart


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: SET Command in DOS or XP CMD

Unix commands in Command prompt? www.computing.net/answers/programming/unix-commands-in-command-prompt/15282.html

"TYPE" DOS commands in C www.computing.net/answers/programming/type-dos-commands-in-c-/16874.html

set var from a text file in dos www.computing.net/answers/programming/set-var-from-a-text-file-in-dos/20045.html