Repository navigation
dos_specialdir
Dale Fugier edited this page Jul 1, 2026
·
1 revision
Retrieves the path of a special directory. Note, many of the items are either operating system or Windows shell specific.
(dos_specialdir item)
item
An integer specifying a special directory. Valid values are as follows:
| Value | Description |
|---|---|
| 0 | Windows desktop |
| 1 | Internet Explorer (icon on desktop) |
| 2 | Start Menu\Programs |
| 3 | My Computer\Control Panel |
| 4 | My Computer\Printers |
| 5 | My Documents |
| 6 | \Favorites |
| 7 | Start Menu\Programs\Startup |
| 8 | \Recent |
| 9 | \SendTo |
| 10 | \Recycle Bin |
| 11 | \Start Menu |
| 12 | Logical "My Documents" desktop icon |
| 13 | "My Music" folder |
| 14 | "My Videos" folder |
| 15 | \Desktop |
| 16 | UNUSED |
| 17 | My Computer |
| 18 | Network Neighborhood (My Network Places) |
| 19 | \nethood |
| 20 | Windows\fonts |
| 21 | Templates |
| 22 | All Users\Start Menu |
| 23 | All Users\Start Menu\Programs |
| 24 | All Users\Startup |
| 25 | All Users\Desktop |
| 26 | \Application Data |
| 27 | \PrintHood |
| 28 | \Local Settings\Application Data (non roaming) |
| 29 | Non localized startup |
| 30 | Non localized common startup |
| 31 | Non localized favorites |
| 32 | Internet cache |
| 33 | Internet cookies |
| 34 | Internet history |
| 35 | All Users\Application Data |
| 36 | Windows directory |
| 37 | System directory |
| 38 | C:\Program Files |
| 39 | C:\Program Files\My Pictures |
| 40 | User profile |
| 41 | x86 system directory on RISC |
| 42 | x86 C:\Program Files on RISC |
| 43 | C:\Program Files\Common |
| 44 | x86 Program Files\Common on RISC |
| 45 | All Users\Templates |
| 46 | All Users\Documents |
| 47 | All Users\Start Menu\Programs\Administrative Tools |
| 48 | \Start Menu\Programs\Administrative Tools |
| 49 | Network and Dial-up Connections |
| 50 | UNUSED |
| 51 | UNUSED |
| 52 | UNUSED |
| 53 | All Users\My Music |
| 54 | All Users\My Pictures |
| 55 | All Users\My Pictures |
| 56 | All Users\My Pictures |
| 57 | Localized Resource Directory |
| 58 | Links to All Users OEM specific apps |
| 59 | USERPROFILE\Local Settings\Application Data\Microsoft\CD Burning |
| 60 | UNUSED |
| 61 | Computers Near Me (computed from Workgroup membership) |
A string containing the path of the special directory if successful.
nil if not successful on error.
Command: (dos_specialdir 0)
"C:\\Documents and Settings\\dale\\Desktop\\"
Command: (dos_specialdir 5)
"C:\\Documents and Settings\\dale\\My Documents\\"