Showing archive results for 2008

Feb 28, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Move Files Based on a Portion of the File Name?

ScriptingGuy1

Hey, Scripting Guy! I have tens of thousands of files that all have a file name that includes a number bounded by two underscore characters; for example, P_19_L00.jpg. I need to figure out which number is embedded in a file name, then move that file to a folder named after that number. In this case, that means moving P_19_L00.jpg to the folder D:\...

Scripting Guy!scripting techniquesVBScript
Feb 27, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Create a GUID Using Windows PowerShell?

ScriptingGuy1

Hey, Scripting Guy! I see that it is pretty easy to generate a GUID using Windows Script Host. But how can I do this using Windows PowerShell?-- DL Hey, DL. Before we begin we’d like to announce that the Scripting Guys are looking for 158 volunteers, volunteers to undertake a daring mission. What sort of mission? We are planning to overthro...

Scripting Guy!Windows PowerShellscripting techniques
Feb 26, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Check the Value of a Specific Cell in a Bunch of Office Excel Spreadsheets?

ScriptingGuy1

Hey, Scripting Guy! How can I create a script that will list all the files in a directory that have a specific value in a specific cell of an Office Excel workbook? And can that be expanded into a find/replace function?-- RDC Hey, RDC. Now that we’re finally beginning to get a bunch of scores posted for the 2008 Winter Scripting Games peopl...

Scripting Guy!VBScriptOffice
Feb 25, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Find a Word in a Document and Change the Background Color of the Paragraph Where That Word Appears?

ScriptingGuy1

Hey, Scripting Guy! I have a bunch of reports and log files that are saved as Microsoft Word documents. I’d like to be able to search for a specific word in one of these documents (e.g., the word “Failed”) and then change the background color of any paragraph that the target word appears in. How can I do that?-- XD Hey, XD. You ...

Scripting Guy!VBScriptOffice
Feb 22, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Replace Incorrect Dates in My File Names?

ScriptingGuy1

Hey, Scripting Guy! have a folder that has a whole bunch of files in it. Many of those files have a file name that includes an incorrect date; for example, the file might be named FGA Site Visit 2-14-07 204.jpg when it should really be named FGA Site Visit 2-14-08 204.jpg. (That is, it suggests the visit occurred in 2007 rather than 2008.) How can...

Scripting Guy!scripting techniquesVBScript