Showing results for July 2007 - Page 3 of 4 - Scripting Blog [archived]

Jul 17, 2007
0
0

How Can I List the Network Printers For the Logged-On User?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I create a logon script that lists the network printers for the logged-on user, then writes that information to a text file?-- RC Hey, RC. You know, the nice thing about coming to work after a few days off is – well, OK, so maybe we can’t actually think of anything nice about coming to work after a few days off. ...

Scripting Guy!VBScriptprinting
Jul 14, 2007
0
0

How Can I Create a File of a Specified Size?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I create a file of a specified size using a script?-- RE Hey, RE. Well, it’s day 2 of the Walla Walla Invitational Baseball tournament, but at the moment the Scripting Guy who writes this column isn’t thinking about baseball; instead, he’s getting ready to head out to the Walla Walla Regional Airport and ...

Scripting Guy!VBScriptstorage
Jul 13, 2007
0
0

How Can I Use Windows PowerShell to Retrieve Environment Variables and Special Folder Paths?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I use Windows PowerShell to retrieve the value of environment variables and the path to a special folder?-- SB Hey, SB. Well, it’s Thursday, which means that the Scripting Guy who writes this column is currently in Walla Walla, WA, which, as Daffy Duck fans all know, is the home of the Wishy Washy Washing Machine ...

Scripting Guy!Windows PowerShelldesktop management
Jul 12, 2007
0
0

How Can I Ensure That a User Enters Only Allowed Characters in a Text Box?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! I have an HTA which includes a text box where the user must enter a part number. Part numbers must consist of a certain set of characters; how can I determine if a user entered an invalid character in the part number text box?-- RR Hey, RR. You know, with one exception, no one has ever accused the Scripting Guy who writes ...

Scripting Guy!scripting techniquesVBScript
Jul 11, 2007
0
0

How Can I Insert a Page Break in a Text File After Each Line Where the Only Character is the Number 1?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I open a text file and insert a page break after each line where the only character is the number 1?-- JR Hey, JR. OK, to begin with, there’s no doubt that the Scripting Guy who writes this column doesn’t keep up with the world of fashion; for example, he considers “getting dressed up” to mean going out ...

Scripting Guy!scripting techniquesVBScript

Feedback