Odin Posted September 11, 2010 Share Posted September 11, 2010 What is the %foobar% or %12345% variable used to mean the local copy of the CD root that was copied to the %SystemDrive% (C:) during the text mode install part, for example like C:\$win_nt$.~ls\ where the directory C:\$win_nt$.~ls\i386 exists of a PXE based RIS installation ?Or more usefuly I am looking for a reference of all the value %99999% like environment substitutions that various Microsoft platforms have, ideally with which version of OS support each, what they mean, examples of what they expand too.What are they technically called by Microsoft ? I have seen EXPAND use in Registry types and also variable substitution. Maybe if I knew the correct phrase I could research some more. Link to comment Share on other sites More sharing options...
Guest Posted September 11, 2010 Share Posted September 11, 2010 (edited) TxtSetup.sif uses the numbers as defined in the [WinntDirectories] section of that file. This information may be what you seek. Gosh has more information about that file here on MSFN.Pertaining to INFs: Microsoft's guide to Using DirIDs, as specifically requested. Gosh also has a guide on MSFN—more informative, though not quite as well written. DirIDs are sometimes called LDIDs, or Local Directory IDentifiers.Take note that these numeric IDs are valid only in INFs, not in REG files or at a command prompt. Edited September 11, 2010 by 5eraph Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted September 11, 2010 Share Posted September 11, 2010 1 = <Location of running inf>10 = %SystemRoot%11 = %SystemRoot%\system3212 = %SystemRoot%\system32\DRIVERS17 = %SystemRoot%\INF18 = %SystemRoot%\help20 = %SystemRoot%\fonts21 = %SystemRoot%\system32\viewers23 = %SystemRoot%\system32\spool\drivers\color24 = %SystemDrive%\25 = Shared directory30 = <Root directory of the boot disk>\50 = %SystemRoot%\SYSTEM51 = %SystemRoot%\system32\spool52 = %SystemRoot%\system32\spool\DRIVERS\W32X86 ;(x86 systems only)52 = %SystemRoot%\system32\spool\DRIVERS\x64 ;(x64 systems only)53 = %UserProfile%54 = <Directory where bootmgr.exe is located>\55 = %SystemRoot%\system32\spool\PRTPROCS\W32X86 ;(x86 systems only)55 = %SystemRoot%\system32\spool\PRTPROCS\x64 ;(x64 systems only)16384 = %UserProfile%\Desktop16386 = %UserProfile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs16389 = %UserProfile%\Documents16390 = %UserProfile%\Favorites16391 = %UserProfile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup16392 = %UserProfile%\AppData\Roaming\Microsoft\Windows\Recent16393 = %UserProfile%\AppData\Roaming\Microsoft\Windows\SendTo16395 = %UserProfile%\AppData\Roaming\Microsoft\Windows\Start Menu16397 = %UserProfile%\Music16398 = %UserProfile%\Videos16400 = %UserProfile%\Desktop16403 = %UserProfile%\AppData\Roaming\Microsoft\Windows\Network Shortcuts16404 = %SystemRoot%\Fonts16405 = %UserProfile%\AppData\Roaming\Microsoft\Windows\Templates16406 = %AllUsersProfile%\Microsoft\Windows\Start Menu16407 = %AllUsersProfile%\Microsoft\Windows\Start Menu\Programs16408 = %AllUsersProfile%\Microsoft\Windows\Start Menu\Programs\Startup16409 = %Public%\Desktop (%UserProfile%\..\Public\Desktop)16410 = %AppData%16411 = %AppData%\Microsoft\Windows\Printer Shortcuts16412 = %LocalAppData%16413 = %AppData%\Microsoft\Windows\Start Menu\Programs\Startup16414 = %AllUsersProfile%\Microsoft\Windows\Start Menu\Programs\Startup16415 = %UserProfile%\Favorites16416 = %LocalAppData%\Microsoft\Windows\Temporary Internet Files16417 = %AppData%\Microsoft\Windows\Cookies16418 = %LocalAppData%\Microsoft\Windows\History16419 = %ProgramData%16420 = %SystemRoot%16421 = %SystemRoot%\system3216422 = %ProgramFiles%16423 = %UserProfile%\Pictures16424 = %UserProfile%16425 = %SystemRoot%\SysWOW64 ;(x64 systems only)16426 = %ProgramFiles(x86)% ;(x64 systems only)16427 = %CommonProgramFiles%16428 = %CommonProgramFiles(x86)% ;(x64 systems only)16429 = %AllUsersProfile%\Microsoft\Windows\Templates16430 = %Public%\Documents (%UserProfile%\..\Public\Documents)16431 = %AllUsersProfile%\Microsoft\Windows\Start Menu\Programs\Administrative Tools16432 = %AppData%\Microsoft\Windows\Start Menu\Programs\Administrative Tools16437 = %Public%\Music (%UserProfile%\..\Public\Music)16438 = %Public%\Pictures (%UserProfile%\..\Public\Pictures)16439 = %Public%\Videos (%UserProfile%\..\Public\Videos)16440 = %SystemRoot%\resources16441 = %SystemRoot%\resources\040916442 = %AllUsersProfile%\OEM Links16443 = %LocalAppData%\Microsoft\Windows\Burn\Burn Expanded for 64 bit Link to comment Share on other sites More sharing options...
Odin Posted September 13, 2010 Author Share Posted September 13, 2010 Thanks for your replies most helpful.I do want to run it from a *.BAT/*.CMD (called from i386\svcpack.inf) however I could write an EXE tool to expand the "%1%" if there was suitable API to do this.It doesn't appear there exists either DirId or environment variable which cover what I am after, which is the C:\$win_nt$.~ls which is the location of the copied installation files done during the last part of the textmode part of installation. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now