Showing results for running - Scripting Blog [archived]

Nov 23, 2004
0
0

How Can I Run a Script Against a Range of IP Addresses?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! I’d like to run a script against all the computers on a subnet. Is there a way to do that without having to hardcode all the IP addresses into the script?-- RB Hey, RB. Based on your email, it sounds like you have a setup similar to this: you have a subnet with IP addresses ranging from 192.168.1.1 to 192.168.1.254. You’d lik...

Scripting Guy!scripting techniquesVBScript
Oct 5, 2004
0
0

How Can I Pause a Script and Then Resume It When a User Presses a Key on the Keyboard?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! I would like to be able to pause my script, then have it resume as soon as the user presses any key on the keyboard. How do I do that?-- AL Hey, AL. Boy, this question takes us back: “Press any key to continue,” along with “Abort, Retry, or Fail,” has to be one of the most famous phrases in computing history. Excuse us for a ...

Scripting Guy!scripting techniquesVBScript
Aug 26, 2004
0
0

Can I Change the Command Window Title When Running a Script?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! When I run a batch file, I can use the Title command to change the caption of the command window. Can I change the caption of the command window from within a script?-- AA, Yokohama, Japan Hey, AA. Well, yes, as long as you’re willing to open up a new command window. If you are, then you can use code similar to this: Notice wha...

Scripting Guy!scripting techniquesVBScript
Aug 23, 2004
0
0

Can I Change the Current Directory When Running a Script?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! Can I change the current directory while my script is running?-- KO, Kalispell, MT Hey, KO. Yes, you can change the current directory while a script is running, provided you are running Windows Script Host 5.6, that is. To change the current directory, all you have to do is create an instance of the Wscript.Shell object, and th...

Scripting Guy!scripting techniquesVBScript
Aug 10, 2004
0
0

How Can I Call the Dir Command?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! I’m trying to do something that seems pretty simple: call the dir command from a script. It doesn’t seem to work, though. How come?-- CR, Mexico City, Mexico Hey, CR. It appears from your mail that you’re trying to do a simple thing like this: However, instead of getting a list of everything in the current folder, you’re gettin...

Scripting Guy!scripting techniquesVBScript