Showing results for files - Scripting Blog [archived]

Aug 23, 2005
Post comments count0
Post likes count0

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
Jun 20, 2005
Post comments count0
Post likes count0

How Can I Determine if a File Exists and, if It Does, Exit the Script?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I check to see if a particular file exists and, if it does, exit the script?-- TO Hey, TO. There are at least two ways to check for the existence of a file (that’s the real key here; exiting the script is easy). One of these approaches uses the FileSystemObject and the other uses WMI, and we’re going to show you both ...

Scripting Guy!VBScriptstorage
May 3, 2005
Post comments count0
Post likes count0

How Can I Insert Files into a Word Document?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! Awhile back you showed people how they could combine several text files into a single file. I’d like to do the same thing in Word. How can I insert files into a Word document?-- HK Hey, HK. Believe it or not it’s actually easier to insert files into a Microsoft Word document than it is to insert a text file into another text ...

Scripting Guy!VBScriptOffice
Apr 8, 2005
Post comments count0
Post likes count0

How Can I Get a List of All the .PST Files on a Computer?

ScriptingGuy1
ScriptingGuy1

  Hey, Scripting Guy! How can I get a list of all the .pst files on a computer - along with their size and their location - and then save that information to a comma-separated values file?-- DC Hey, DC. If you hang around baseball fields long enough sooner or later you’ll hear someone use the expression “tailor-made.” Typically what they are...

Scripting Guy!scripting techniquesVBScript
Mar 17, 2005
Post comments count0
Post likes count0

How Can I Move Files Based on Their File Extension?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! I have a folder with a bunch of files in it. I need to move all those files; the only problem is that the files need to be moved to different folders depending on their file extensions. For example, I want all the .log files to go here, all the .bak files to go there, etc. How can I do that using a script?-- SH Hey, SH. There...

Scripting Guy!VBScriptstorage