Showing archive results for 2005

Feb 23, 2005
Post comments count0
Post likes count0

How Can I Read Text From a File and Then Rename the File Using the Text I Just Read?

ScriptingGuy1

Guy! I would like to be able to open a file, read the first 10 characters, and then rename the file to those 10 characters plus a .txt file extension. How can I do that?-- KA Hey, KA. Ah, for once a text file question that can be answered without some weird and convoluted workaround. This is actually pretty easy: we can use the FileSystemObject to...

Scripting Guy!scripting techniquesVBScript
Feb 22, 2005
Post comments count0
Post likes count0

How Can I Tell Whether a Web Page is Accessible?

ScriptingGuy1

Hey, Scripting Guy! How can I tell whether or not a Web page is accessible?-- JW Hey, JW. To tell you the truth, these are the kinds of questions we hate, questions where we don’t know the answer off the top of our heads but where it seems like there ought to be a way to do this. Sometimes in the world of scripting the hard things turn out to be...

Scripting Guy!scripting techniquesVBScript
Feb 21, 2005
Post comments count0
Post likes count0

How Can I Create a GUID Using a Script?

ScriptingGuy1

Hey, Scripting Guy! We have items that we need to track using unique identification numbers. My boss suggested that we use GUIDs for this purpose. Is there any way to create a GUID using a script?-- DX Hey, DX. GUIDs (globally unique identifiers) are a good choice for a job like this; we don’t pretend to understand the algorithm behind GUIDs, bu...

Scripting Guy!scripting techniquesVBScript
Feb 18, 2005
Post comments count0
Post likes count0

How Can I List the Files in a Folder and All Its Subfolders?

ScriptingGuy1

Hey, Scripting Guy! How can I list all of the files in a folder, as well as all the files in any subfolders of that folder?-- MA Hey, MA. This is a question we get asked quite a bit, and one which have avoided answering up till now. That’s because there is no nice, simple answer to this one: a script that can carry out this task is bound to be a...

Scripting Guy!VBScriptstorage
Feb 17, 2005
Post comments count0
Post likes count0

How Can I Count the Number of Times a User has Logged on to a Computer?

ScriptingGuy1

Hey, Scripting Guy! How can I count the number of times a user has logged on to a computer?-- DE Hey, DE. How can you count the number of times a user has logged on to a computer? Good question and, ultimately, the answer might be: you can’t. But let’s at least explore some possible solutions and see if any of them will help. First of all, let’s...

Scripting Guy!scripting techniquesVBScript