Showing results for files - Scripting Blog [archived]

Dec 29, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Delete and Manage PDF Files?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! We are implementing a document management system at work, and users are no longer allowed to store PDF files. I need to search a folder for the existence of PDF files. If the folder contains any PDF files, I want to delete them. If on the other hand there are no PDF files in the folder, I would like to create a file called nop...

Scripting Guy!Windows PowerShellstorage
Aug 14, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Find Files’ Metadata?

ScriptingGuy1
ScriptingGuy1

Hey Scripting Guy! I have a folder of media files, documents, etc., and I would like to see the metadata that is associated with each file. Can I do this with Windows PowerShell?-- EJ Hi EJ, I suspect that you are more interested in "data about data." Various applications store additional descriptive information that is used in different ways. ...

Scripting Guy!Windows PowerShellstorage
Jul 29, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Compare Files With the Same Name But Two Different Extensions?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! After doing several restores we have folders with files named name.doc AND name.do (without "C"). How can we identify such pairs of files and do something to them based on a comparison?-- TN Hi TN, Scripts like the one we’ll develop in this article are the best tools I know of for dealing with this sort of problem. Dealing w...

Scripting Guy!VBScriptstorage
Jun 26, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Copy Files Based on Multiple Criteria?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I match multiple criteria in a file name? I need to copy all the files in a folder that are less than 24 hours old, and that have file names beginning with the letters FS, CG, or GPS. How can I do that?-- EM Hey, EM. You know, today is an exciting day at Microsoft; it’s the day when we get our Spam Notification. ...

Scripting Guy!VBScriptstorage
Jun 21, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Change the Letter Case of My File Names?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy (and the $12 million-a-year Scripting Editor)! Is there a way to mass-rename all the files in a folder, changing the letter case as needed?-- MV Hey, MV. To begin with, we should mention that we know that you actually asked two questions in your email. We’re going to deal with the first question – mass-renaming of a...

Scripting Guy!VBScriptstorage