This is hardly worthy to be included among the many great threads in Sysnative Programming Forum, but an OP asked, so. . .
Batch file explained -
[/FONT][/PLAIN] >> 0
[*]start notepad 0
[/LIST][/FONT][/CODE]
1. extraneous - left over from other batch scripts
2. create a file named 0 -- or write spaces to it if it exists (note single >)
-- >> = append to file v. overwrite
3,5,7 - write a blank line (append)
4,11 - write CODE & FONT BB code to output file to make pasting into post easier for you & easier for me to read!
8,9,10 - write current DATE & TIME to output file -- just a habit of mine to repeat 3x
The 2 "real" commands are 6, 12
6 - run SET command; write to output file
12 - open the file 0 with NOTEPAD
A period after the ECHO statement = ignore text after it; write blank line
You can bring up a CMD screen & type SET - same output as appeared in Notepad.
http://www.techsupportforum.com/forums/f217/cant-find-c-users-public-folders-689658.html#post4064209
SET ENV variables -
http://www.sysnative.com/apps/jcgriff2/ENVvar_System_jcgriff2.bat
Batch file explained -
Code:
[FONT=Lucida Console][PLAIN]@echo off
:: J. C. Griffith
:: Microsoft MVP
:: SET command
:: 2008-2013
[/PLAIN][LIST=1]
[*]cd /d %homedrive%
[*]echo. > 0
[*]echo. >> 0
[*]echo [PLAIN][code][font=lucida console][/PLAIN] >> 0
[*]echo. >> 0
[*]set >> 0
[*]echo. >> 0
[*]echo %date% %time% >> 0
[*]echo %date% %time% >> 0
[*]echo %date% %time% >> 0
[*]echo [PLAIN]
[*]start notepad 0
[/LIST][/FONT][/CODE]
1. extraneous - left over from other batch scripts
2. create a file named 0 -- or write spaces to it if it exists (note single >)
-- >> = append to file v. overwrite
3,5,7 - write a blank line (append)
4,11 - write CODE & FONT BB code to output file to make pasting into post easier for you & easier for me to read!
8,9,10 - write current DATE & TIME to output file -- just a habit of mine to repeat 3x
The 2 "real" commands are 6, 12
6 - run SET command; write to output file
12 - open the file 0 with NOTEPAD
A period after the ECHO statement = ignore text after it; write blank line
You can bring up a CMD screen & type SET - same output as appeared in Notepad.
http://www.techsupportforum.com/forums/f217/cant-find-c-users-public-folders-689658.html#post4064209
SET ENV variables -
Code:
HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
http://www.sysnative.com/apps/jcgriff2/ENVvar_System_jcgriff2.bat