Showing results for August 2004 - Page 3 of 5 - Scripting Blog [archived]

Aug 17, 2004
0
0

How Can I Save Output to a Text File?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! Is there an easy way to save my script output to a text file rather than displaying it on screen? -- KP, Ogden, UT Hey, KP. If you always want your script to save data to a text file rather than display it on screen, then you’re probably better off using the FileSystemObject and its file-writing capabilities. However, it appear...

Scripting Guy!scripting techniquesVBScript
Aug 16, 2004
0
0

How Can I Give a User a Yes/No Prompt?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! I have a script which performs some file management tasks, and then should ask the user whether or not they want to delete a set of files. How do I ask a user a Yes or No question like this? -- SE, Casper, WY Hey, SE. There are a couple different ways that you can do this, but because you’re dealing with users the best way is p...

Scripting Guy!scripting techniquesVBScript
Aug 13, 2004
0
0

Can I Copy Script Output to the Clipboard?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! Is there any way to have my script output copied to the Clipboard? -- ZW, Marseilles, France Hey, ZW. Well, as long as you don’t mind crazy work-arounds then, yes, it’s actually pretty easy to copy script output to the Clipboard. To start with, you need to construct a string that contains the desired output. After ...

Scripting Guy!VBScriptdesktop management
Aug 12, 2004
0
0

Can I Read a Text File From the Bottom Up?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! I have a log file in which new data is appended to the bottom of the file; that means the most recent entries are at the end of the file. I’d like to be able to read the file starting with the last line and then ending with the first line, but I can’t figure out how to do that.-- MB, Milwaukee, WI Hey, MB. The File...

Scripting Guy!scripting techniquesVBScript
Aug 11, 2004
0
0

Can I Get a List of All My User Accounts?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! Is there any way to get a list of all the user accounts in Active Directory?-- CB, Fremont, CA Hey, CB. By far the quickest and easiest way to do this is to search Active Directory for all your user accounts. Here’s a sample script that searches the fabrikam.com domain; to search your own domain, just edit the LDAP connection s...

Scripting Guy!VBScriptActive Directory