VBscript error

G

Guest

I'm trying to learn Windows scripting and running through a week's worth of
scripting webcasts. Everytime I try to run script using cscript scriptname at
the command prompt, I get the error "Microsoft VBScript runtime error: Path
Not Found.

I'll also get an error if I try to double-click the .vbs file. These are the
sample scripts accompanying the webcast. Any ideas? I have a suspicion XP SP2
is behind this even though I'm using Zone alarm and not the Windows Firewall.

Thanks for any suggestions.
 
R

Ramesh, MS-MVP

Frank,

VBScript runs with %SystemRoot%\System32\WScript.exe or CScript

See if this helps, from Start-Run:

%SystemRoot%\System32\WScript.exe <filename.VBS>

Post back the error message (if any) in detail.

--
Ramesh, Microsoft MVP
Windows XP Shell/User
http://windowsxp.mvps.org


I'm trying to learn Windows scripting and running through a week's worth of
scripting webcasts. Everytime I try to run script using cscript scriptname at
the command prompt, I get the error "Microsoft VBScript runtime error: Path
Not Found.

I'll also get an error if I try to double-click the .vbs file. These are the
sample scripts accompanying the webcast. Any ideas? I have a suspicion XP SP2
is behind this even though I'm using Zone alarm and not the Windows Firewall.

Thanks for any suggestions.
 
G

Guest

Thanks for your reply. I realized I was getting ahead of the game.
(Scripting newbie that I am).

I was using the file-create.vbs sample script with the webcast. I missed the
fact that a folder-create.vbs script came first. I was trying to create the
file with the script that would only create a file, but the folder did not
yet exist.

This is how we learn..

Thanks.

Frank
 
R

Ramesh, MS-MVP

You're welcome Frank.

--
Ramesh, Microsoft MVP
Windows XP Shell/User
http://windowsxp.mvps.org


Thanks for your reply. I realized I was getting ahead of the game.
(Scripting newbie that I am).

I was using the file-create.vbs sample script with the webcast. I missed the
fact that a folder-create.vbs script came first. I was trying to create the
file with the script that would only create a file, but the folder did not
yet exist.

This is how we learn..

Thanks.

Frank
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top