Jump to content

Run .lnk from desktop


kman
 Share

Recommended Posts

I have seen these on the forums but have not been able to get any to work.

Here is what I am trying. I think I may be off on my quotes? Thanks for any help!!

Run(@ComSpec & ' /c' @DesktopCommonDir & "NAME.lnk",@SW_HIDE)

Link to comment
Share on other sites

$file = @DesktopCommonDir & "\NAME.lnk"
Run(@ComSpec & ' /c start "" "' & $file & '"', "", @SW_HIDE)
Was able to get it to work with this one. Thank you! I understand a little of what it is doing but dont totally get all of the quotes and how and why they are used. Just me not understanding it.

Thanks everyone for your time, it is very much appreciated. This is an excellent group!!

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...