找回密码
 加入
搜索
查看: 1987|回复: 0

关于随机启动~~~

[复制链接]
发表于 2008-7-22 18:29:52 | 显示全部楼层 |阅读模式
我想删除一个随电脑开机随机启动的程序~~
filedelete(路径 & "文件.lnk")

请问各位大大,这个路径怎么写呀?比如我知道桌面上:@startmenu/????????????

在线等~~~~~~~~谢谢啦

已解决。谢谢。如下:

"所有用户"(All Users)的宏。大部分的数据读取于:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion

@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\「开始」菜单\程序\启动)
  
当前用户 的宏。大部分的数据读取于:

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion

@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)
@ComSpec 即 %comspec% 的值(%comspec% 是一个指向当前命令行外壳的环境变量,通常因操作系统的不同而可能是 cmd.exe 或 command.exe),
主要用于命令行语句,例: Run(@ComSpec & " /k help | more")

[ 本帖最后由 boyhong 于 2008-7-22 19:20 编辑 ]
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-18 09:14 , Processed in 0.069216 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表