Dirk98 Posted September 21, 2007 Posted September 21, 2007 Can I launch a program with a script by "kicking" the shortcut *.lnk not the *.exe? If it is possible, which command handles it? Thanks.
aslani Posted September 21, 2007 Posted September 21, 2007 Can I launch a program with a script by "kicking" the shortcut *.lnk not the *.exe? If it is possible, which command handles it?Thanks.Doesn't the *.lnk already does exactly want to want to do? [font="Georgia"]Chances are, I'm wrong.[/font]HotKey trouble?Stringregexp GuideAutoIT Current Version
frostfel Posted September 21, 2007 Posted September 21, 2007 Can I launch a program with a script by "kicking" the shortcut *.lnk not the *.exe? If it is possible, which command handles it?Thanks.$LnkShort = FileGetShortcut("C:\Notepad.lnk")Run($LnkShort[0])Func FileGetShortcut gets .lnk details puts them in array one of the things it gets is the file dirctory which is returned in $var[0]
Nahuel Posted September 21, 2007 Posted September 21, 2007 ShellExecute("Shortcut.lnk", "", @DesktopDir )
Dirk98 Posted September 22, 2007 Author Posted September 22, 2007 $LnkShort = FileGetShortcut("C:\Notepad.lnk")Run($LnkShort[0])Func FileGetShortcut gets .lnk details puts them in array one of the things it gets is the file dirctory which is returned in $var[0]Thanks, guys. The above was particualry useful.
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