![]() ![]() Set MM_4=%UTILS%\_Console\SysInternals\PSToolsįor /F "delims=" %%i in ('set MM_') do call :AddDir "!%%i!" P_ADD :: Will be added to path if not already in it ![]() :: NOTE: This is must in order for many programs in Utils folder :: Variables can imeddiately be used except in current :: PURPOSE: Sets UTILS enviroment variables in Machine Registry. Setlocal ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION MM_NN are folders that are to be added into the off The script doesn't add into the PATH if dir is already there. Setx is not required as you can do that with WMIC, but setx is faster and easier to use. I was using resource kit utility setx and bellow is myu script that initialise my portabile environment. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |