xfiruath Posted October 19, 2005 Share Posted October 19, 2005 I'm trying to run a shortcut to a file, but I haven't been able to locate any commands that work(run doesn't do it). Unfortunately I'm in a situation at work where, due to network restrictions, I am unable to actually run the source file, but I have to be able to open the file using AutoIt to complete my assignment!! Any ideas on how to get this to work, or any possible workarounds? Link to comment Share on other sites More sharing options...
CyberSlug Posted October 19, 2005 Share Posted October 19, 2005 http://www.autoitscript.com/forum/index.ph...topic=12392&hl= Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
xfiruath Posted October 19, 2005 Author Share Posted October 19, 2005 Unfortunately that doesn't work (I had already tried that waaaaaaay long before becoming frustrated enough to post a question), as I am not able to access the file directly. In any way. Tried seven thousand different combos (going so far as to write a script to open outlook and browse to the file that way....almost worked) Hmm...I'll just have to find some other way to do what I'm trying to do. Thanks for the help though! Link to comment Share on other sites More sharing options...
Ghastly_MIB Posted October 19, 2005 Share Posted October 19, 2005 Maybe it's to late, but try this.. Not tested $link =;Your link location $array = FileGetShortcut($link) Run($array[0], $array[1], $array[6]) Link to comment Share on other sites More sharing options...
/dev/null Posted October 19, 2005 Share Posted October 19, 2005 Unfortunately that doesn't work (I had already tried that waaaaaaay long before becoming frustrated enough to post a question), as I am not able to access the file directly. In any way. Tried seven thousand different combos (going so far as to write a script to open outlook and browse to the file that way....almost worked) Hmm...I'll just have to find some other way to do what I'm trying to do. Thanks for the help though!It would help if you could post your code and the error messages (if there are any). Otherwise we can only speculate what's going wrong!CheersKurt __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
xfiruath Posted October 20, 2005 Author Share Posted October 20, 2005 "$link =;Your link location $array = FileGetShortcut($link) Run($array[0], $array[1], $array[6])" Somehow, this worked perfectly. Thank you Ghastly_MIB! I'm not sure why it worked though. Isn't this essentially doing the exact same thing as run("thebaseapplication")? Link to comment Share on other sites More sharing options...
Ghastly_MIB Posted October 21, 2005 Share Posted October 21, 2005 "$link =;Your link location$array = FileGetShortcut($link)Run($array[0], $array[1], $array[6])"Somehow, this worked perfectly. Thank you Ghastly_MIB! I'm not sure why it worked though. Isn't this essentially doing the exact same thing as run("thebaseapplication")?Jep,Run("application dir", "Working directory", "Window settings (minimized, maximezer e.d.)") Link to comment Share on other sites More sharing options...
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