Showing results for FileSystemObject - Scripting Blog [archived]

Feb 7, 2006
0
0

How Can I Determine the Drive Letter for the Drive My Script is Currently Running On?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! I have a script that runs off a CD and copies a bunch of files to a computer. However, in order to copy the files I need to know the complete file path, including the drive letter. How can I determine the drive letter for the drive my script is currently running on?-- RKG Hey, RKG. You know, about a year or so ago one of the ...

Scripting Guy!scripting techniquesVBScript
Oct 25, 2005
0
0

How Can I Delete a Backup File Created on the Previous Day?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! Each day we have a program that creates a file with a name similar to this: backup_20050607.bak. How can I delete the previous day’s file?-- JC Hey, JC. Hmmm, a script that goes out and automatically deletes whatever happened the day before. Boy, could we have used a script like that a few weeks ago! Yes, we know. But that’s ...

Scripting Guy!VBScriptstorage
Oct 21, 2005
0
0

How Can I Read a Text File on a Remote Computer?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I read a text file on a remote computer?-- BM Hey, BM. We have a confession to make: we’re using you and your question for our own nefarious purposes. Earlier this week we answered a question about reading the last line in a group of text files; in our answer we promised we’d show people how to use the FileSystemObjec...

Scripting Guy!scripting techniquesVBScript
Aug 23, 2005
0
0

How Can I Unhide All the Files in a Folder?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I run a script to unhide all the files in a folder?-- GA Hey, GA. You know, when one of the Scripting Guys was a bit younger he and the other kids in his neighborhood spent countless hours playing variations on hide-and-seek; in fact, this Scripting Guy still has vivid memories of lying in a shallow ditch and having m...

Scripting Guy!VBScriptWMI
Aug 1, 2005
0
0

How Can I Search for Two Items in a Text File?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! You’ve shown us how to search a text file for a single word or phrase, but how can I search a text file for two phrases? I need to know if a file contains either Windows 2000 or Windows XP.-- JR Hey, JR. You know, it’s hard enough to get the Scripting Guys to do one thing; getting them to do two things would seem to be well-n...

Scripting Guy!scripting techniquesVBScript