Showing tag results for folders

Apr 23, 2009
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Work with Directories, Files, and Folders by Using Windows PowerShell?

ScriptingGuy1

Hey, Scripting Guy! This may not sound too exciting, but I do a lot of work with files and folders. I constantly have to create folders and files, move files, and move folders. This was easy to do by using VBScript, but nevertheless it always required at least six lines of code to do anything. Is it possible to simplify this process by using Wind...

Scripting Guy!Windows PowerShellscripting techniques
Oct 30, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Determine Folder Size?

ScriptingGuy1

Hey, Scripting Guy! We are getting ready for a migration, and I am trying to find an easy way to determine the size of the Documents folder. I would like to use Windows PowerShell to do this, but when I use the Get-Item cmdlet to retrieve the properties of a folder, I do not see the size. I really do not want to have to iterate through the entire...

Scripting Guy!Windows PowerShellstorage
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

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
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

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

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