Showing results for running - Scripting Blog [archived]

May 2, 2007
Post comments count0
Post likes count0

How Can I Ensure That a Script Runs Only Once on a Computer?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I ensure that a script runs only once on a computer?-- ML Hey, ML. You know, we were going to start off today’s column by saying, “Show us your bobbleheads!” However, we didn’t want to have to explain to Microsoft people that there was nothing risqué or offensive in that statement; instead, all we wanted is to see wha...

Scripting Guy!scripting techniquesVBScript
Apr 24, 2007
Post comments count0
Post likes count0

How Can I Get the Command Window to Stay Open When I Right-Click a Script and Choose Open With Command Prompt?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I get the command window to stay open when I right-click a .VBS file and choose Open With Command Prompt??-- BB Hey, BB. You know, according to BB’s email signature, he’s 9 years old. If that’s true, well, that’s absolutely amazing. A 9-year-old who knows VBScript? At age 9 the Scripting Guys could barely feed themsel...

Scripting Guy!scripting techniquesVBScript
Apr 9, 2007
Post comments count0
Post likes count0

How Can I Tell Whether a Laptop Computer is Running Off Batteries?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I tell whether a laptop computer is running off batteries?-- TJ Hey, TJ. Ah, yes: batteries. Back in December the Scripting House lost power for six days. Was the Scripting Guy who writes this column concerned? Of course not. After all, he was fully prepared for an emergency like that: he had four (count ‘em: four) fl...

Scripting Guy!VBScriptrunning
Feb 23, 2007
Post comments count0
Post likes count0

How Can I Tell If a Script is Running on the First or Second Monday of a Month?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! We have a logon script that needs to perform certain tasks only on the first and second Mondays of the month. How can I determine whether the script is running on the first or second Monday in a month?-- WA Hey, WA. You know, a few months ago the Scripting Guy who writes this column noticed that his watch had stopped; consequ...

Scripting Guy!scripting techniquesVBScript
Dec 4, 2006
Post comments count0
Post likes count0

How Can I Expand the Width of the Windows PowerShell Console?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I expand the width of the Windows PowerShell console? When I display certain kinds of data – like information from the event logs – that data gets cut off because the console window isn’t wide enough.-- TB Hey, TB. Wow, what a coincidence: we were just about to ask you that very same question! Now what do we do? No, jus...

Scripting Guy!Windows PowerShellscripting techniques