Welcome to TechNet Blogs Sign in | Join | Help

Browse by Tags

All Tags » associators of   (RSS)

Hey, Scripting Guy! How Can I Delete Files That Are a Specified Number of Hours Old?

Hey, Scripting Guy! I’ve seen scripts that let you delete all the files in a folder that are X number of days old. I have a different problem: I’d like to delete files that are X number of hours, or even X number of minutes , old. How can I do that? --

How Can I Identify the Last File in a Sequential List of Files?

Hey, Scripting Guy! I have a folder which contains thousands of files, all numbered sequentially. How can I tell which file is the last file in the list? -- AC Hey, AC. You know, one of the fun things about being a Scripting Guy is that we get to spend

How Can I Get a Total Page Count for All the Word Documents in a Folder?

Hey, Scripting Guy! How can I get a total page count for all the Word documents in a folder? -- RA Hey, RA. You’ll have to forgive the Scripting Guy who writes this column if he seems a little tired this morning. Yesterday was the first day of school

How Can I Remove Blank Spaces From File Names?

Hey, Scripting Guy! I have a folder with a bunch of files in it, files with names like Doc 1.pdf, Doc 2.pdf, and Doc 3.pdf. How do I remove the blank spaces from all those file names? -- JRP Hey, JRP. You know, today’s column represents a landmark in

How Can I Incrementally Rename All the Files in a Folder?

Hey, Scripting Guy! I have an unknown number of files in a folder. I need to rename them using this format: ABC_f x .inv, where x is an incremental number. How can I do that? -- RN Hey, RN. You know, one of the Scripting Guys once had an idea for a very

How Can I Get the Names of 10 Randomly-Selected Files in a Folder?

Hey, Scripting Guy! How can I get the names of 10 randomly-selected files in a folder? I need to do that so I can test and verify our backup and restore policies. -- CS Hey, CS. You know, if you’re interested in things that are random, haphazard, arbitrary,

How Can I Get a List of All the .dll Files in a Folder, Along with Their Version Numbers?

Hey, Scripting Guy! How can I get a list of all the .dll files in a folder, along with their version numbers? -- DD Hey, DD. You know, when we sit down to write this column we usually try to start off with an amusing and at least semi-relevant anecdote.

How Can I Use a Script to Automatically Queue Up Files That I Want to Burn to a CD?

Hey, Scripting Guy! In Windows XP, how can I use a script to automatically queue up files that I want to burn to a CD? -- BD Hey, BD. Well, unfortunately, we have some bad news for you: there’s currently no way to burn a CD using a script. You see, the

How Can I Rename Files Like _JKG1234.jpg to 272_DSC_1234.jpg?

Hey, Scripting Guy! How can I rename files like _JKG1234.jpg to 272_DSC_1234.jpg? -- NA Hey, NA. You know, NA, we feel sorry for you. Why? Well, on the one hand you’re unbelievably lucky. After all, the Scripting Guys never write scripts that they actually

How Can I Insert Multiple Files Into a Word Document, Putting a Page Break Between Each File?

Hey, Scripting Guy! On May 3 rd you showed us how to merge multiple files in Microsoft Word. I’d like to do that, but put a page break between each file. -- CE Hey, CE. You know, when we read your email our first thought was this: no way did we show people

How Can I Verify That a Folder Has Files in It and, If So, Delete Those Files?

Hey, Scripting Guy! How can I verify that a certain folder (C:\TestLog) has files in it and, if so, delete all those files? -- DC Hey, DC. Before we begin we should point out that - when using WMI - it doesn’t matter whether or not a folder has any files

How Can I Add the Last Lines from a Group of Text Files to a Word Document?

Hey, Scripting Guy! How can I take the last line in a group of text files and paste that information into a Word document? -- JV Hey, JV. You know, one thing we try to do in this column is focus on practical system administration tasks. We’ll deviate

How Can I Unhide All the Files in a Folder?

Hey, Scripting Guy! How can I run a script to unhide all the files in a folder? -- GA Hey, GA. You know, when one of the Scripting Guys was a bit younger he and the other kids in his neighborhood spent countless hours playing variations on hide-and-seek;
 
Page view tracker