I am unable to run a simple .LNK file from vbscript.
I have tried at least 3 different ways.
Attempt one...
Set ss = CreateObject("WScript.Shell")
ss.Run ss.specialfolders("Desktop") & "google.LNK"
Attempt two...
ss.Run "%comspec% /k ""C:\Documents and settings\op74216\Desktop\google.lnk"""
Attempt three...
ss.Run "rundll32.exe url.dll,FileProtocolHandler ""C:\Documents and settings\op74216\Desktop\Google.lnk""", 0, False
Every way gives me an error, [highlight]"The system cannot find the specified file"[/highlight], I can open another text file like this:
ss.run ss.SpecialFolders("Desktop") & "\new.txt"
I have looked all over the web for the correct way to run a shortcut and I have tried all these ways and cannot get it. Any help would be appreciated.. It would seem it should not be this difficult to open a shortcut. I am frustrated....
CHAOS, PANIC, & DISORDER - my work here is done.
I have tried at least 3 different ways.
Attempt one...
Set ss = CreateObject("WScript.Shell")
ss.Run ss.specialfolders("Desktop") & "google.LNK"
Attempt two...
ss.Run "%comspec% /k ""C:\Documents and settings\op74216\Desktop\google.lnk"""
Attempt three...
ss.Run "rundll32.exe url.dll,FileProtocolHandler ""C:\Documents and settings\op74216\Desktop\Google.lnk""", 0, False
Every way gives me an error, [highlight]"The system cannot find the specified file"[/highlight], I can open another text file like this:
ss.run ss.SpecialFolders("Desktop") & "\new.txt"
I have looked all over the web for the correct way to run a shortcut and I have tried all these ways and cannot get it. Any help would be appreciated.. It would seem it should not be this difficult to open a shortcut. I am frustrated....
CHAOS, PANIC, & DISORDER - my work here is done.