Year: 2008

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…

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,…

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…

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,…

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…

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…

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…

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…

“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…

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…