Showing tag results for Scripting Guy!

Aug 12, 2004
Post comments count0
Post likes count0

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
Post comments count0
Post likes count0

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
Aug 10, 2004
Post comments count0
Post likes count0

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
Aug 9, 2004
Post comments count0
Post likes count0

Can I Enable the Caps Lock Key?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! I have a script where users enter some information in an Input box. The information needs to be entered in all-capital letters, so my instructions say, “Please make sure the Caps Lock key is on before entering the information.” They don’t always do that, however. Is there a way to turn the Caps Lock key on and off using a scrip...

Scripting Guy!scripting techniquesVBScript
Aug 6, 2004
Post comments count0
Post likes count0

How Can I Use Long File Names as Parameters?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! I’m trying to run a command-line tool from a script, but I need to pass it a long file name like C:\Documents and Settings\All Users\Desktop\logfile.txt. No matter how I try to pass that file name, however, my script blows up on me. Help!-- WK, Birmingham, Great Britain Hey, WK. Ah, yes: you’ve encountered the dreaded double do...

Scripting Guy!scripting techniquesVBScript