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 RH, Ever since… Read more

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 up the computer. To make things simple,… Read more

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 on the other hand there are no PDF… Read more

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

Deleting Old Folders Programmatically   Hey, Scripting Guy! I need to delete some folders that exist under a root folder based upon how long they have been in existence. I do not need to delete the root folder, only the child folders. What is happening is that our logging routine creates new logs every hour,… Read more

Hey, Scripting Guy! How Can I Document Printers?

Hey, Scripting Guy! I do not know about you, but does it seem that printers are a major pain in the dark side? I mean, they seem to multiply faster than bacteria. They are all just different enough to cause maintenance problems, and forget about trying to keep track of toner cartridges. Do you have… Read more

Hey, Scripting Guy! How Can I Kill Processes?

Hey, Scripting Guy! It seems that every single piece of software I install adds a stub application that starts automatically. I know software makers do not do it out of maliciousness, but good grief these people act as if theirs is the most important software on my computer. In the old days, it was pretty… Read more

Hey, Scripting Guy! How Can I Easily Reconfigure Services?

I have a problem. The pointy-headed boss (PHB) loves to play with his laptop. The problem is he does not know anything. He routinely hoses his computer, and then expects me to drop everything and come fix it. I am not making this up; we had an Exchange server crash one time, he knew we… Read more

Hey, Scripting Guy! How Can I Have Computer Configuration Information Written to an HTML File?

Hey, Scripting Guy! I need to obtain some basic configuration information from my computers on the network. It would be nice if the script would write the output in an HTML file that we could copy to our internal Web server. This would give us easy access to the information. Whadda ya say?– JE Hi… Read more

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

“File Not Found” Error When Trying to Run a PowerPoint Presentation from the Windows XP Desktop   Hey, Scripting Guy! I have a problem when I try to run a Microsoft Office PowerPoint slideshow that I have saved on the desktop of my Windows XP computer. I cannot get this stupid thing to work. It… Read more

Hey, Scripting Guy! How Can I Pull Server Diagnostic Information and Have It Saved in an Excel Spreadsheet with a Chart?

Hey, Scripting Guy! Good morning. I would like to use WMI to get diagnostic information for my server. I would like to be able to do this remotely and to write the results to an Excel spreadsheet. When I am done, I would like the spreadsheet to also create a chart of the results. Is… Read more