imported>mutante mNo edit summary |
imported>mutante mNo edit summary |
||
Line 35: | Line 35: | ||
-- |
-- |
||
Use these when scripting and also when telling people on IRC where to go in Windows. Avoids all the trouble with different partition names and localization. |
Use these when scripting and also when telling people on [[IRC]] where to go in Windows. Avoids all the trouble with different partition names and localization. |
||
To get a list of all environmental variables type "set" in cmd.exe (just like in [[Linux]]). |
To get a list of all environmental variables type "set" in cmd.exe (just like in [[Linux]]). |
Latest revision as of 21:17, 24 October 2006
Using environmental variables in Windows.
Start->Run->cmd.exe
echo "hello %username% at %computername% this is your %processor_identifier% speaking. I detected some pr0n in %userprofile%. Please remove it."
"hello fnord at THETA this is your x86 Family 6 Model 8 Stepping 1, AuthenticAMD speaking. I detected some pr0n in C:\Dokumente und Einstellungen\fnord. Please remove it."
--
C:\>E:
E:\>%homedrive%
C:\>
--
C:\>cd %userprofile%
C:\Dokumente und Einstellungen\fnord>
--
C:\cd %tmp%
C:\DOKUME~1\fnord\LOKALE~1\Temp>
--
E:\>%systemdrive% cd %systemroot%
C:\WINDOWS>
--
Use these when scripting and also when telling people on IRC where to go in Windows. Avoids all the trouble with different partition names and localization.
To get a list of all environmental variables type "set" in cmd.exe (just like in Linux).