Script won't run with WSCRIPT/CSCRIPT 
Author Message
 Script won't run with WSCRIPT/CSCRIPT

I have a VBScript script that runs fine if I double-click on the icon,
but it does not run if I type in the filename at the Run prompt nor if
I use WSCRIPT or CSCRIPT to kick it off.  Am I missing something here?
Shouldn't it run properly no matter how I kick it off?

Sent via Deja.com http://www.*-*-*.com/
Before you buy.



Fri, 24 May 2002 03:00:00 GMT  
 Script won't run with WSCRIPT/CSCRIPT

In the Start Menu/Run dialog box, enter the fully qualified path to the script:

"drive:\path\script.vbs"

Include the quotes if there are any embedded spaces.  Using WScript or CScript explicitly isn't necessary except from the Win9x DOS box (or you can use "start" instead)...

--
Michael Harris


  I have a VBScript script that runs fine if I double-click on the icon,
  but it does not run if I type in the filename at the Run prompt nor if
  I use WSCRIPT or CSCRIPT to kick it off.  Am I missing something here?
  Shouldn't it run properly no matter how I kick it off?

  Sent via Deja.com http://www.deja.com/
  Before you buy.



Fri, 24 May 2002 03:00:00 GMT  
 Script won't run with WSCRIPT/CSCRIPT
Luis,
I have the exact same problem.  If I run the script from the command prompt, it works fine.

--
--
Regards,

Steve Topilnycky
Symantec Norton AntiVirus Support Volunteer
Using Microsoft Outlook Express 5.0
______________________________________________________________


Web:  http://ourworld.compuserve.com/homepages/steve_topilnycky/
ICQ:  11834114    http://www.icq.com
______________________________________________________________



Fri, 24 May 2002 03:00:00 GMT  
 Script won't run with WSCRIPT/CSCRIPT
You will need to use the full path to the script unless you put the script
in a folder in the Path.  I added D:\Scripts to the Path in Autoexec.bat
just for this reason.

Bill James

Free Win9x VBScript Utilities
http://home.earthlink.net/~wgjames/vbspage/


Quote:
> I have a VBScript script that runs fine if I double-click on the icon,
> but it does not run if I type in the filename at the Run prompt nor if
> I use WSCRIPT or CSCRIPT to kick it off.  Am I missing something here?
> Shouldn't it run properly no matter how I kick it off?

> Sent via Deja.com http://www.deja.com/
> Before you buy.



Fri, 24 May 2002 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Running VB Script code on WSH using cscript on win NT

2. Simple script won't run on certain user's PC

3. Can't Create Object WScript.Shell in Win 98 (1st Ed) and Win 95

4. Running cscript.exe and wscript.exe from the floppy drive

5. Runs in WScript and not in cscript

6. Ghostscript won't run from script.

7. VBS Scripts won't run, bad association?

8. Remote Admin Scripts won't run

9. scripts won't run on 2k prof

10. Logon Date/Time Script Won't Run

11. Scripts won't run in XP

12. Login Script won't Run

 

 
Powered by phpBB® Forum Software