A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Windows 10 » Windows 10 Help Forum
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Is there a system environment variable to the System32 directory?



 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old September 16th 20, 05:01 PM posted to alt.comp.os.windows-10,alt.comp.microsoft.windows
Arlen Holder
external usenet poster
 
Posts: 186
Default Is there a system environment variable to the System32 directory?

Is there a system environment variable to the System32 directory?
o cd %system32%

I haven't seen one but there should be, IMHO, so, maybe it exists?
o Here's, at this very moment, where I'd like to use it, for example.


Setting up a PC that BOSD'd, I just created this custom command:

1. Rightclick create a shortcut C:\app\os\commands\links\curlit.lnk
Whose TARGET is %comspec% /k %Windir%\System32\curl.exe icanhazip.com

2. Add an AppPaths key named "curlit.exe" so you can run that command:
[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\curlit.exe]
Whose value is C:\app\os\commands\links\curlit.lnk

3. Such that you can now efficiently run the command any time you like:
Win+R curlit
Which will tell you your current IP address (usually under VPN).

Two things I'd like to improve with this custom command is:
a. I'd like the report to last for ten seconds, & then close the window.
b. I'd like to have a %environmentvariable% to System32 commands.

Probably it doesn't exist, but then, why not?
o Anyway, that's why I ask if you know of a variable to %System32%.
--
Note I don't use plurals, but I put them there for easy reading.
 




Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off






All times are GMT +1. The time now is 08:52 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.
Copyright 2004-2023 PCbanter.
The comments are property of their posters.