Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

How Can I Remove the Last Carriage Return-Linefeed in a Text File?

(image) Hey, Scripting Guy! How can I remove the last carriage return-linefeed in a text file?-- LEK(image) (image) (image) Hey, LEK. From the rest of your email you note that you’re using the FileSystemObject to read a text file, then using the contents of that text file as a query in another application. Unfortunately, though, the text...

How Can I Switch Between Using a Proxy Server and Not Using a Proxy Server?

(image) Hey, Scripting Guy! At work we need to use a proxy server to connect to the Internet; when I take my laptop home to work, however, I don’t need to use a proxy server. I know I can use the Internet Options in Control Panel to change between using a proxy server and not using a proxy server; is there any way to switch between the two...

Hey, Scripting Guy! How Can I Access Active Directory on a Specific Domain Controller?

(image) Hey, Scripting Guy! How can I access Active Directory on a specific domain controller?-- SD (image) (image) (image) Hey, SD. You know, one of the cool things about Active Directory is that you usually don’t need to access the directory service on a specific domain controller. Because Active Directory information is replicated ...