Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Environment Variables

Status
Not open for further replies.
Joined
May 8, 2004
Messages
92
Location
GB
Hi,
I seem to have forgotten how to make customized environment variable like cmd or msconfig which i can run directly from Start->Run

I tried this
Variable Name : text
Variable Value : C:\WINDOWS\NOTEPAD

from DOS if i write echo %text% it works but not from Start->Run.

i want to run "text" so that notepad can open.
after a long search i cant find anything.would anyone give me a clue or any sorta help.
TA in advance
 
Hello netlearner,

I do not quite understand. If text is defined as such, is it not? at start>run, you have to type:
%text% (hard enter)
rather than
text (hard enter)

regards - tsuji
 
Okay yuh i agree but how about
cmd msconfig calc commands which dont require any delimiters like %

in any case yes %text% did open the notepad but then i dont want to put %.
 
netlearner,

Simply put, it is because cmd, msconfig, calc each is a shorthand of the executable cmd.exe, msconfig.exe, calc.exe which by chance or by design fall within the path.

Whereas, text by itself is not corresponding to any executable. You have to make the system known it stands for something special, namely, %text%, an environment variable which happens to be an executable.

- tsuji
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top