检索特殊目录. 注意, 许多项目是由操作系统和Windows shell共同指定的.
(dos_specialdir item)
item
指定特殊目录的整数. 可用值如下:
0 |
桌面 |
1 |
Internet Explorer (桌面图标) |
2 |
开始\程序 |
3 |
我的电脑\控制面板 |
4 |
我的电脑\打印机 |
5 |
我的文档 |
6 |
<用户名>\收藏夹 |
7 |
开始\程序\启动 |
8 |
<用户名>\我最近的文档 |
9 |
<用户名>\发送到 |
10 |
<桌面>\回收站 |
11 |
<用户名>\「开始」菜单 |
12 |
"我的文档" (桌面图标) |
13 |
"我的音乐" (文件夹) |
14 |
"我的视频" (文件夹) |
15 |
<用户名>\桌面 |
16 |
未使用 |
17 |
我的电脑 |
18 |
网上邻居 (我的网络地址) |
19 |
<用户名>\nethood |
20 |
Windows\fonts |
21 |
Templates |
22 |
All Users\「开始」菜单 |
23 |
All Users\「开始」菜单\程序 |
24 |
All Users\启动 |
25 |
All Users\桌面 |
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 历史 |
35 |
All Users\Application Data |
36 |
Windows目录 |
37 |
System32目录 |
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\共享文档 |
47 |
All Users\「开始」菜单\程序\管理工具 |
48 |
<user name>\「开始」菜单\程序\管理工具 |
49 |
网络和拔号连接 |
50 |
未使用 |
51 |
未使用 |
52 |
未使用 |
53 |
All Users\我的音乐 |
54 |
All Users\图片收藏 |
55 |
All Users\我的视频 |
56 |
.\WINDOWS\resources |
57 |
Localized Resource Directory |
58 |
链接到All Users的OEM特殊应用程序 |
59 |
USERPROFILE\Local Settings\Application Data\Microsoft\CD Burning |
60 |
未使用 |
61 |
邻近的计算机(查看工作组计算机) |
如果成功, 返回目录路径.
nil 失败时.
Command: (dos_specialdir 0)
"C:\\Documents and Settings\\dale\\Desktop\\"
Command: (dos_specialdir 5)
"C:\\Documents and Settings\\dale\\My Documents\\"