下面列出的是一些与目录相关的宏.注意:路径不包括结尾的反斜杠符号 "\"
如需查看所有宏的列表请点击 此处.
| 宏 | 详细信息 |
| "所有用户"(All Users)的宏. | |
| @AppDataCommonDir | Application Data 目录所在路径(例: C:\Documents and Settings\All Users\Application Data) |
| @DesktopCommonDir | 桌面 目录所在路径(例: C:\Documents and Settings\All Users\桌面) |
| @DocumentsCommonDir | Documents 目录所在路径(例: C:\Documents and Settings\All Users\Documents) |
| @FavoritesCommonDir | Favorites 目录所在路径(例: C:\Documents and Settings\All Users\Favorites) |
| @ProgramsCommonDir | 「开始」菜单\程序 目录所在路径(例: C:\Documents and Settings\All Users\「开始」菜单\程序) |
| @StartMenuCommonDir | 「开始」菜单 目录所在路径(例: C:\Documents and Settings\All Users\「开始」菜单) |
| @StartupCommonDir | 启动 目录所在路径(例: C:\Documents and Settings\All Users\「开始」菜单\程序\启动) |
当前用户的宏. |
|
| @AppDataDir | 当前用户的 Application Data 目录所在路径 |
| @DesktopDir | 当前用户的 桌面 目录所在路径 |
| @MyDocumentsDir | 当前用户的 Documents 目录所在路径 |
| @FavoritesDir | 当前用户的 Favorites 目录所在路径 |
| @ProgramsDir | 当前用户的 「开始」菜单\程序 目录所在路径 |
| @StartMenuDir | 当前用户的 「开始」菜单 目录所在路径 |
| @StartupDir | 当前用户的 启动 目录所在路径 |
| @UserProfileDir | 当前用户的 帐号 目录所在路径(例: C:\Documents and Settings\AUTOIT) |
| 其它计算机系统宏: | |
| @HomeDrive | 当前用户的帐号目录所在驱动器盘符(例: C:) |
| @HomePath | 当前用户的帐号目录(不包括盘符).配合@HomeDrive使用即可获得该目录的完整路径(例: \Documents and Settings\AUTOIT) |
| @HomeShare | 服务器与共享名,包括当前用户的帐号目录 |
| @LogonDNSDomain | 已登陆 DNS 域 |
| @LogonDomain | 已登陆域(例: ANGEL) |
| @LogonServer | 已登陆服务器(例: \\ANGEL) |
| @ProgramFilesDir | Program Files 文件夹 所在路径(例: C:\Program Files) |
| @CommonFilesDir | Common Files 文件夹 所在路径(例: C:\Program Files\Common Files) |
| @WindowsDir | Windows 文件夹 所在路径(例: C:\WINDOWS) |
| @SystemDir | Windows 下的 System (或System32) 文件夹所在路径(例: C:\WINDOWS\system32) |
| @TempDir | 临时 文件夹 所在路径(例: C:\DOCUME~1\yonken\LOCALS~1\Temp),注意这里是8.3格式的短路径 |
| @ComSpec | 即 %comspec% 的值(%comspec% 是一个指向当前命令行外壳的环境变量,通常因操作系统的不同而可能是 cmd.exe 或 command.exe), 主要用于命令行语句,例: Run(@ComSpec & " /k help | more") |