Welcome to TechNet Blogs Sign in | Join | Help

Browse by Tags

All Tags » files   (RSS)

Hey, Scripting Guy! Can I "Unlock" a Read-Only File, Edit it, and Make It Read-Only Again?

Hey, Scripting Guy! We have a number of files that we need to access at work from time to time. To protect these files, we make them read-only. This works great from a file protection standpoint, but it is really annoying when I need to make updates to

Hey, Scripting Guy! Can I Sort Files by Creation Date?

Hey, Scripting Guy! I have a number of files that I work with based upon the date the file was created. I need an easy way to sort the listing of the files in a folder by creation date if possible. I am not sure this is even possible. When I look at the

Hey, Scripting Guy! How Can I Check for the Presence or Absence of a Text File?

Share this post: Hey, Scripting Guy! We use text files in special folders to determine if we have performed an operation on a computer. For example, we might install a piece of software on a computer. While it is possible to query the Win32_Product WMI

Hey, Scripting Guy! How Can I Clean Up File Names?

Share this post: Hey, Scripting Guy! We have a number of files that were manually created by various people in a common folder. Unfortunately, they did not follow a specific naming convention as well as they should, and as a result they do not sort very

Hey, Scripting Guy! Can I Create New Folders in a Sequentially Numbered Series?

Share this post: Hey, Scripting Guy! I hate to type numbers. I actually took typing in high school and did really well with it. I was able to type more than 40 words per minute at the end of the class with no errors. I got an A for the class. But, I was

Hey, Scripting Guy! Quick-Hits Friday: The Scripting Guys Respond to a Bunch of Questions (7/3/09)

How Can I List Files and Folders with Special Characters in Their Names? Hey, Scripting Guy! First I would like to thank you for all the good humour you present me every time I need you. I’m trying to use one of your scripts to list the files and folders

Hey, Scripting Guy! Quick-Hits Friday: The Scripting Guys Respond to a Bunch of Questions (05/22/09)

How Can I Determine if a Particular Windows Feature Is Installed? Hey, Scripting Guy! I am new to Windows PowerShell scripting and have a little experience with WMI thanks to your Windows PowerShell Scriptomatic tool. I'm trying to determine whether a

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

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

Hey, Scripting Guy! How Can I Rename All of the Pictures in a Folder?

My scripting husband travels a great deal with his job, and he takes these really cool pictures. Unfortunately, he is somewhat lazy about downloading the pictures from the camera. As a result, we have pictures from Hawaii that are named Phoenix_Desert_05.jpg.

Hey, Scripting Guy! How Do I Rename All Files in a Folder?

I want to use SharePoint for our company’s script library, but it will not allow us to upload a VBScript file. It accepts PS1 files just fine, but we still have quite a few VBScripts and we need to keep a central repository of them. We have decided to

Hey, Scripting Guy! How Can I Copy a File Multiple Times and Give a Unique Name to Each File?

Hey, Scripting Guy! I have a file that I would like to copy a number of times. This file is basically a template. I have an Excel spreadsheet that contains a list of names that I would like to use for the newly copied files. Can you help me? - PR Hi PR,

Hey, Scripting Guy! How Can I Create File Names Based on Their Time Stamp?

Hey, Scripting Guy! How can I create a file name from the date? I have this application that creates a log file, and every hour I would like to save that log file as a file whose name is generated from the current time stamp. Can this be done? - RH Hi

Hey, Scripting Guy! How Do I Back Up Files That Have Been Modified in the Last Day?

Hey, Scripting Guy! I have a USB drive that I use for backup purposes on my computer. Because it appears that Windows Vista does not have a backup program that I can use, I thought it would be useful to write a script using Windows PowerShell to back

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

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

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

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.
Posted by ScriptingGuy | 0 Comments
Filed under: ,
More Posts Next page »
 
Page view tracker