Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Cannot run vbs by double-click

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,25627
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Cannot run vbs by double-click
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Cannot run vbs by double-click - 9/7/2005 1:35:13 AM   
  richmondva

 

Posts: 3
Score: 0
Joined: 9/7/2005
Status: offline
I cannot get any vbs files to run by double-clicking on the file name or by drag and drop.
The only way I can get them to run is by using the command prompt.
I checked, and vbs files will run in Internet Explorer.

My system:
WindowsXPSP2
Reinstalled Windows Scripting Host 5.6 (scripten.exe)
The vbs extension is associated with Windows Based Script Host.
Any suggestions?

Here is the info on the vbs file I am trying to run:
http://www.ericphelps.com/scripting/samples/PEMenu/
 
 
Post #: 1
 
 RE: Cannot run vbs by double-click - 9/7/2005 4:08:11 AM   
  thantos_kalev2001


Posts: 26
Score: 0
Joined: 8/31/2005
Status: offline
Have you tried creating a Desktop Shortcut in windows (assuming you are using Windows)?
You can rightmouse click on the desktop and choose NEW-->Shortcut.  Then, you can navigate to your script's path.  You can even choose a catchy icon if you want.

Thantos

(in reply to richmondva)
 
 
Post #: 2
 
 RE: Cannot run vbs by double-click - 9/7/2005 4:30:29 AM   
  richmondva

 

Posts: 3
Score: 0
Joined: 9/7/2005
Status: offline
I tried putting a shortcut to the vbs file on the desktop.  It still does not seem to run.

I am at a loss.

(in reply to richmondva)
 
 
Post #: 3
 
 RE: Cannot run vbs by double-click - 9/7/2005 4:43:42 AM   
  thantos_kalev2001


Posts: 26
Score: 0
Joined: 8/31/2005
Status: offline
You could also use Scheduled Tasks to have it run at a certain time.

Control Panel-->Scheduled Tasks

(in reply to richmondva)
 
 
Post #: 4
 
 RE: Cannot run vbs by double-click - 9/7/2005 4:57:44 AM   
  Snipah


Posts: 1343
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
Hiya,

Please see if this: http://www.visualbasicscript.com/m_3/tm.htm topic can help you out...



_____________________________

For more information, please see the "Read me First" topic.

http://www.visualbasicscript.com

(in reply to thantos_kalev2001)
 
 
Post #: 5
 
 RE: Cannot run vbs by double-click - 9/11/2005 8:11:59 AM   
  richmondva

 

Posts: 3
Score: 0
Joined: 9/7/2005
Status: offline
I went to the thread suggested, but the link there no longer works.

I have already tried reinstalling the Windows Scripting Host 5.6 (scripten.exe) .


(in reply to Snipah)
 
 
Post #: 6
 
 RE: Cannot run vbs by double-click - 9/14/2005 2:01:48 AM   
  Cybex


Posts: 412
Score: 0
Joined: 9/14/2005
From: Florida
Status: offline
Is this a work system or a system you build and have always had full control of?  If it is a work system that has been locked down the open action for the file type may have been reset to something like notepad instead of wscript.  You can check this by opening a folder and going to “Tools”, “Folder Options”, “File Types”, “Select “.VBS” and the “Advanced”.  Select “Open” action and see what it is set to.
 
Cybex

(in reply to richmondva)
 
 
Post #: 7
 
 RE: Cannot run vbs by double-click - 9/14/2005 2:09:11 AM   
  sethsdad


Posts: 115
Score: 0
Joined: 4/4/2005
From: USA
Status: offline
Cybex has the right idea.  It is either a registry problem (VBS isn't associated with wcript.exe) or you have some sort of malware protection that prevents execution of VBS files (since that's how spammers like to send viruses).

(in reply to Cybex)
 
 
Post #: 8
 
 RE: Cannot run vbs by double-click - 9/14/2005 6:08:01 AM   
  Snipah


Posts: 1343
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
Sorry for the dead link thread...

try this:

http://msdn.microsoft.com/library/default.asp?url=/downloads/list/webdev.asp

_____________________________

For more information, please see the "Read me First" topic.

http://www.visualbasicscript.com

(in reply to sethsdad)
 
 
Post #: 9
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Cannot run vbs by double-click Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts