Showing tag results for storage

May 16, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Delete All the Files in a Folder Except for the Most-Recently Created File?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! I have a folder that has about 50 files in it. How can I delete all those files except the one most-recently created?-- GA Hey, GA. You know, today would be a good day to review some of the items that have recently been in the news. (You know that life must be exceedingly dull for the Scripting Guy who writes this column when...

Scripting Guy!VBScriptstorage
May 10, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Use Windows PowerShell to Pick Out the Unique File Extensions Used in a Collection of Files?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! I’m having a strange problem with Windows PowerShell, and I was wondering if you could help me solve it. I’m trying to get a list of the unique file extensions used by the files in a folder. I have a whole bunch of different file types in that folder, but every time I run my command it returns just one file extension. What am ...

Scripting Guy!Windows PowerShellstorage
May 3, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Identify the 20 Most-Recently Modified Files in a Folder?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! I Using VBScript, how can I identify the 20 most-recently modified files in a folder?-- TW Hey, TW. You know, the Scripting Guy who writes this column was just reading – thanks to the magic of Spam email – about a new voice mail service. With this service you don’t have to listen to all those annoying voice mails; instead, wh...

Scripting Guy!VBScriptstorage
Apr 22, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Monitor a Folder for the Creation of New Subfolders?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I monitor a folder for the creation of new subfolders? I know that new files can be detected (via WMI events) but the same syntax doesn't detect new folders.-- WS Hey, WS. Before we get started today can we ask you a quick question: are you reading today’s column? If you aren’t reading today’s column that means that t...

Scripting Guy!VBScriptstorage
Apr 17, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Find Folders Whose Name Fits a Specified Pattern?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! I have a bunch of folders that had names like this: BAD_20080411; in other words, the characters BAD_ followed by the date. These folders can be on any drive on my computer. How can I write a script that will locate all these folders for me?-- NS Hey, NS. Did you hear about the construction worker who attempted to place a curs...

Scripting Guy!VBScriptstorage