Showing results for folders - Scripting Blog [archived]

Jun 1, 2007
Post comments count0
Post likes count0

How Can I Change the File Extension for All the Files in a Folder?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! We backed up a whole bunch of files in a folder; when these files were backed up the word "old" was inserted as part of the file extension (e.g., Filename.exe became Filename.oldexe). How can I restore these files to their original names and extensions?-- RP Hey, RP. Today is Friday, June 1st, which can only mean one thing: ...

Scripting Guy!VBScriptstorage
May 22, 2007
Post comments count0
Post likes count0

How Can I Monitor the Number of Files in a Folder?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! We have a third-party application that rarely crashes; however, when it does crash it seriously disrupts our business. We can always tell when the application is getting ready to crash; at that point, one of its directories starts filling up with log files. How can we be notified any time the number of log files in this folder...

Scripting Guy!VBScriptstorage
May 18, 2007
Post comments count0
Post likes count0

How Can I Search Every Text File in a Folder For Phone Numbers?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! In yesterday’s column you showed us how to search for phone numbers in a text file; you also promised us that in today’s column you’d show us how to modify that script so that it can search through all the text files in a folder. Are you still going to do that?-- SE Hey, SE. Yes, we’re going to – wait a second. SE? Interestin...

Scripting Guy!scripting techniquesVBScript
May 15, 2007
Post comments count0
Post likes count0

How Can I Copy the Same File to a Number of Different Computers?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! I regularly update a file that needs to be copied to all of my servers. How can I write a script that will copy the same file (to the same folder) on multiple computers?-- JU Hey, JU. It’s Monday, May 14th as we write this column, which mean that Mother’s Day in the US is over. And that’s good. Not that the Scripting Guys hav...

Scripting Guy!VBScriptstorage
Apr 30, 2007
Post comments count0
Post likes count0

How Can I Remove the First Five Lines From All the Log Files in a Folder?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! I have about 400 log files in a folder. I need to go in and remove the first 5 lines from each of those log files. How can I write a script to do that?-- JW Hey, JW. Before we begin we need to issue a clarification. A few days ago we reported that the Scripting Guy who writes this column had thrown a basketball the length of ...

Scripting Guy!VBScriptstorage