Sign in to follow this  
Followers 0
Guest school110

HELP!

3 posts in this topic

#1 ·  Posted (edited)

i used the code,Run(@COMSPEC & ' /c "c:\path-to-link\My Shortcut.lnk"',"",

@@SW_SHOW), to RUN a file like * lnk, but it did not available in this case:

i add a network place called "我的宽带" it's a linker pointed to local area

connection. Then , i put its path into the code above, but it can't open and run the

file "我的宽带!!!!

HELP!!!!!!

Posted Image

Edited by school110

Share this post


Link to post
Share on other sites



This will only work

Run(@COMSPEC & ' /c "c:\path-to-link\My Shortcut.lnk"')

If this file exists

c:\path-to-link\My Shortcut.lnk

Here's an example that I tested and works.

Run(@ComSpec & ' /c "' & @DesktopDir & '\Media Player Classic.lnk"', '', @SW_HIDE)

Change "Media Player Classic" to the name of your shortcut.

Share this post


Link to post
Share on other sites

Otherwise if everything fail you can try: (only W2000/Xp)

$cmd =;your .lnk file path here...
Run(@SystemDir & '\RUNDLL32.EXE shell32.dll,ShellExec_RunDLL "' & $sCmd & "'")

Thanks PacMan

Share this post


Link to post
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
Sign in to follow this  
Followers 0