Welcome to TechNet Blogs Sign in | Join | Help

Browse by Tags

All Tags » cim_datafile   (RSS)

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

How Can I Tell the Status of Services on a Computer? Hey, Scripting Guy! I’m wondering if you can help me before I tear all my hair out. I’m trying to write a script using WMI that checks for a few core services such as antivirus, remote desktop software,

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 Open All the Excel Spreadsheets in a Folder and Run a Specified Macro Found in Each of Those Spreadsheets?

Hey, Scripting Guy! How can I loop through a folder, open all the Excel files in that folder, then run a specified macro in each of those Excel files? -- BR Hey, BR. So, did you watch college football this past Saturday? In particular, did you watch as

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 Concatenate Files of the Same Name?

Hey, Scripting Guy! How can I concatenate all the files (taken from various folders) that have the same file name? -- AS Hey, AS. You know, the hardest part about selecting questions to be used in the Hey, Scripting Guy! column isn’t writing the scripts;

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 Locate All the Instances of a Particular File on a Computer?

Hey, Scripting Guy! How can I locate all the instances of a particular file (like budget.xls) on a computer? -- MN Hey, MN. Did you know that former heavyweight boxing champion George Foreman has 10 children, 5 sons and 5 daughters? It’s true. But that’s

How Can I Copy a File Numerous Times and Rename Each of Them from a List in Excel?

Hey, Scripting Guy! How can I copy a file 150 times and then rename each of those copies using a list of names found in an Excel spreadsheet? -- DF Hey, DF. You know, when we first started this column 2 years ago (must be time to mention the 500 th Hey,

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 Search for Multiple File Extensions in a Single WQL Query?

Hey, Scripting Guy! How can I search for multiple file extensions in a single WQL query? -- AH Hey, AH. If we understand your question correctly, you want to know if it’s true that the Seattle Seahawks are playing in the Super Bowl this Sunday. Yes, it

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
More Posts Next page »
 
Page view tracker