miko Posted October 9, 2005 Share Posted October 9, 2005 another dumb inf question (before i go to bed) how would you reference 'My documents' location (taking into acount it could be anywhere) in a windows 98SE inf file ? (i'm taking it that the XP DIRIDs don't work) Link to comment Share on other sites More sharing options...
thespin Posted October 9, 2005 Share Posted October 9, 2005 another dumb inf question (before i go to bed) how would you reference 'My documents' location (taking into acount it could be anywhere) in a windows 98SE inf file ? (i'm taking it that the XP DIRIDs don't work)Click on start/search/files and folders. Enter 'documents' and awaaay you go ... Link to comment Share on other sites More sharing options...
eidenk Posted October 9, 2005 Share Posted October 9, 2005 CSIDL_PERSONAL is used to get the location of My Documents programatically. Dunno if it's of any use in infs. Link to comment Share on other sites More sharing options...
miko Posted October 9, 2005 Author Share Posted October 9, 2005 Click on start/search/files and folders. Enter 'documents' and awaaay you go ... ; Common DIRID Listing,;; Destination Directories;; 01 - SourceDrive:\pathname (the directory from which the INF file was installed) ; 10 - Windows directory (%SystemRoot%) ; 11 - System directory (%SystemRoot%\system32 -NT-, %SystemRoot%\system -Win9x/Me-) ; 12 - Drivers directory (%SystemRoot%\system32\drivers -NT-, %SystemRoot%\system\IoSubsys -Win9x/Me-); 17 - INF file directory (%SystemRoot%\inf); 18 - Help directory (%SystemRoot%\Help); 20 - Fonts directory (%SystemRoot%\Fonts); 24 - Root directory of system disk (%SystemDrive%); 25 - Shared directory (%ALLUSERSPROFILE%\Shared Documents); 53 - User profile directory (%USERPROFILE%);; Shell Special Folders;; 16419 %ALLUSERSPROFILE%\Application Data; 16409 %ALLUSERSPROFILE%\Desktop; 16430 %ALLUSERSPROFILE%\Documents; 16437 %ALLUSERSPROFILE%\Documents\My Music; 16438 %ALLUSERSPROFILE%\Documents\My Pictures; 16439 %ALLUSERSPROFILE%\Documents\My Videos; 16415 %ALLUSERSPROFILE%\Favorites; 16406 %ALLUSERSPROFILE%\Start Menu; 16407 %ALLUSERSPROFILE%\Start Menu\Programs; 16431 %ALLUSERSPROFILE%\Start Menu\Programs\Administrative Tools; 16408 %ALLUSERSPROFILE%\Start Menu\Programs\Startup; 16429 %ALLUSERSPROFILE%\Templates; 16410 %USERPROFILE%\Application Data; 16417 %USERPROFILE%\Cookies; 16384 %USERPROFILE%\Desktop; 16400 %USERPROFILE%\Desktop; 16390 %USERPROFILE%\Favorites; 16412 %USERPROFILE%\Local Settings\Application Data; 16443 %USERPROFILE%\Local Settings\Application Data\Microsoft\CD Burning; 16418 %USERPROFILE%\Local Settings\History; 16416 %USERPROFILE%\Local Settings\Temporary Internet Files; 16389 %USERPROFILE%\My Documents; 16397 %USERPROFILE%\My Documents\My Music; 16423 %USERPROFILE%\My Documents\My Pictures; 16398 %USERPROFILE%\My Documents\My Videos; 16403 %USERPROFILE%\NetHood; 16411 %USERPROFILE%\PrintHood; 16392 %USERPROFILE%\Recent; 16393 %USERPROFILE%\SendTo; 16395 %USERPROFILE%\Start Menu; 16386 %USERPROFILE%\Start Menu\Programs; 16432 %USERPROFILE%\Start Menu\Programs\Administrative Tools; 16391 %USERPROFILE%\Start Menu\Programs\Startup; 16405 %USERPROFILE%\Templates; 16422 %ProgramFiles%; 16427 %ProgramFiles%\Common Files; 16440 %SystemRoot%\Resources; 16441 %SystemRoot%\Resources\0409;; e.g.; For shortcut in users Quick Launch toolbar,; "%16410%\Microsoft\Internet Explorer\Quick Launch\"is the info i got, but i don't think most of it applys to 98SEwhat i want to do is place folders into My Documents and muck about with the desktop.inis during the install of the project i'm working on, i'm pretty sure i know now how to do what i want to do with the singular exception of referencing "My Documents" itself with a DIRID (or via an alternative method (reading the registry ?)) Link to comment Share on other sites More sharing options...
miko Posted October 9, 2005 Author Share Posted October 9, 2005 (edited) CustomDestination !HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders !DUH! oh well, i live and learn... Edited October 9, 2005 by miko 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