Is there a system environment variable to the System32 directory?
On 9/16/20 12:01 PM, this is what Arlen Holder wrote:
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%.
Type SET on the command prompt and you will get a list of all variables and where they point to.
If I were to venture a guess off the top of my head %SYSTEM32%
--
Linux Mint 19.3 64bit, Dell Inspiron 5570, Quad Core i7-8550U
|