Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cannot create "wscript.shell"

Status
Not open for further replies.

fvharen

Programmer
Joined
Sep 26, 2006
Messages
7
Location
NL
I build a windows application that checks a pc's shortcuts, through:
"
private Shortcut, WshShell, temp

WshShell = CreateObject("Wscript.Shell")
Shortcut = WshShell.CreateShortcut("exampleshortcut.lnk")

"

On two testpc's this works fine. On a third, the actual production pc, this causes a System.Exception at Microsoft.VisualBasic.Interaction.CreateObject(String ProgId, String ServerName). My application hangs on this, coming to an hold :(

How can I tackle this?

Frank
 
the actual (first) line it crashes on is

WshShell = CreateObject("Wscript.Shell")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top