Showing tag results for files

Nov 14, 2007
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Remove Old Files From All the Folders That Share a Folder Name?

ScriptingGuy1

Hey, Scripting Guy! We have a whole bunch of folders named Archive, all on the same computer. How can I search for all these folders, go through each one, and remove any files that are older than XX number of days?-- CH Hey, CH. Well, it’s Day 2 of TechEd IT Forum here in Barcelona, and today’s the day the Scripting Guys really go back to work. ...

Scripting Guy!VBScriptstorage
Nov 1, 2007
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Use Windows PowerShell to Delete All the Files in a Folder Older Than 90 Days?

ScriptingGuy1

Hey, Scripting Guy! In Windows PowerShell, how can I determine the number of days difference between two dates? I want to be able to delete all the files in a folder that are more than 90 days old.-- JN Hey, JN. You know, today is October 31st and, in the US at least, it’s the day when the dark underworld takes over: witches parade through the s...

Scripting Guy!Windows PowerShellstorage
Oct 24, 2007
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Move Files Based on a Value in the File Name?

ScriptingGuy1

Hey, Scripting Guy! I have a bunch of files that I need to move to new folders; the folder a given file will be moved to is based on the year, a value that appears in the file name. How can I write a script to move these files?-- LP Hey, LP. Before we launch into today’s column, we should clarify a couple of points which came up in an “Editor’s ...

Scripting Guy!VBScriptstorage
Aug 28, 2007
Post comments count0
Post likes count0

How Can I Find All the Files in a Directory Tree that Contain a Specific Word or Phrase?

ScriptingGuy1

Hey, Scripting Guy! How can I find all the files in a directory tree that contain a specified phrase?-- PB Hey, PB. OK, so picture this: for the first time in a couple of months, the Scripting Guy who writes this column and the Scripting Son are playing basketball. The Scripting Son has a comfortable lead, but the Scripting Guy who writes this ...

Scripting Guy!VBScriptstorage
Aug 24, 2007
Post comments count0
Post likes count0

How Can I Delete the Oldest File From a Folder If and When That Folder Exceeds a Specified Size?

ScriptingGuy1

Hey, Scripting Guy! I need to check the size of a folder once every hour; if the folder has exceeded a specified size, I then need to delete the oldest file in that folder. How can I do that?-- JC Hey, JC. You know, a lot of you are thinking, “Gee, I wonder what was the very best, very coolest thing that the Scripting Guy who writes that column...

Scripting Guy!VBScriptstorage