Jump to content

Run a .lnk


Guest MGH
 Share

Recommended Posts

How do I make this work:

Run(@COMSPEC & " /c %userprofile%\Start Menu\Programs\GroupWise\GroupWise Notify.lnk)

Link to comment
Share on other sites

Here how it may be.

Win9x

Run(@COMSPEC & ' /c start "' & EnvGet('userprofile') & '\Start Menu\Programs\GroupWise\GroupWise Notify.lnk"')

Win2000

Run(@COMSPEC & ' /c start "" "' & EnvGet('userprofile') & '\Start Menu\Programs\GroupWise\GroupWise Notify.lnk"')

But still... Slimshady idea is the best.

Link to comment
Share on other sites

Well, Beleive me I have tried that. There seems to be a weird issue with running C:\NOVELL\GroupWise\Notify.exe or C:\NOVELL\GroupWise\grpwise.exein a Run() statement.

I think the problem is more of a GroupWise/NDS issue. I could run C:\NOVELL\GroupWise\Notify.exe from a DOS prompt no problem, could even do it from a CMD file. Everytime I Run(C:\NOVELL\GroupWise\Notify.exe) from my script it would not remeber the user info and ask them to log in and to enter the server address and port. This is not a screen my users would know what to do with it. They never see it.

Thanks for the input. Works great. I use AutoIt 2.x but I am trying to move over to 3. So far I like it alot.

Seems that my issue was the ' or ". Looks like ' is at the beginning and end, but the there are "" " confuses me.

MGH

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...