Question Locked

Running vbs scripts and searching Questions

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

A bit unfair I know but I have two questions. The first I'm sure has already been answered but when you see the second, you'll understand why I've asked it.

1. How do I run a .vbs script?
2. How do I search the Questions forum for silly questions like 1?

3 replies

by snak

1. CSCRIPT.EXE is (or should be) in C:\WINDOWS\SYSTEM32.

Use CSCRIPT

2. Type a keyword (VBScript in this case) into the search box and then sort through the forum posts hoping that a) people have given their posts useful titles and b) you can sort discussions from questions.

by timothyj

If you are running them from DOS, you can open a command prompt and type the following:

CSCRIPT Script.vbs

where "Script.vbs" is the name of your script. If you need to pass arguments / variable data to the script, it would look like this:

CSCRIPT Script.vbs Variable1, Variable2, etc. (as many as you need).

The same would be true for running scripts in batch files. Hope that helps!

This discussion is closed to new replies.