Showing results for folders - Scripting Blog [archived]

Nov 17, 2006
Post comments count0
Post likes count0

How Can I Delete All the .BAK Files in a Folder That Are More Than 7 Days Old?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I delete all the .BAK files in a folder that are more than 7 days old?-- KT Hey, KT. You know, on his way to work this morning the Scripting Guy who writes this column heard an advertisement for a local seafood restaurant. Now, this Scripting Guy doesn’t like seafood, so he normally wouldn’t pay any attention to an ad f...

Scripting Guy!VBScriptstorage
Oct 30, 2006
Post comments count0
Post likes count0

How Can I Use Information in an Excel Spreadsheet to Rename a Set of Folders?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I rename a bunch of folders using a script? The old folder names are in the first column of an Excel spreadsheet and the new folder names are in the second column of an Excel spreadsheet.-- SF Hey, SF. Oh, and welcome to Hey, Scripting Guy!, your daily source for scripting information. We’d like you to know that Hey, ...

Scripting Guy!VBScriptOffice
Sep 19, 2006
Post comments count0
Post likes count0

How Can I Locate All the Folders That Have ArchiveASN in the Path?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I locate all the folders on a computer that have \Archive\ASN\ somewhere in the path?-- AB Hey, AB. We hope this message finds you well. Perhaps you are surprised to hear from us like this; a mutual friend provided us with your name and assured us that you were a responsible and trustworthy person. Recently we Script...

Scripting Guy!scripting techniquesVBScript
Jul 31, 2006
Post comments count0
Post likes count0

How Can I Incrementally Rename All the Files in a Folder?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! I have an unknown number of files in a folder. I need to rename them using this format: ABC_fx.inv, where x is an incremental number. How can I do that?-- RN Hey, RN. You know, one of the Scripting Guys once had an idea for a very different kind of restaurant. Would you walk into this restaurant, sit down at a table, and then...

Scripting Guy!VBScriptstorage
Jul 26, 2006
Post comments count0
Post likes count0

How Can I Move the Oldest File in a Folder to a Different Folder?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I move the oldest file in the folder C:\Upload to C:\Download?-- DD Hey, DD. Funny you should mention the word “oldest.” The Scripting Guy who writes this column recently attended a family reunion and, for the first time ever, came face-to-face with the whole idea of getting old. This Scripting Guy has fond memories o...

Scripting Guy!VBScriptstorage