Welcome to TechNet Blogs Sign in | Join | Help

Browse by Tags

All Tags » text files   (RSS)

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

In this post : Troubleshooting a Windows PowerShell Script Using the Replace Operator How Can I Get a List of Certificates and Their Expiration Dates? Can I Change a Registry Value on 200 Computers? Can I Use Windows PowerShell to Delete Folders Within

Hey, Scripting Guy! Can I Update More Than One Text File?

Hey Scripting Guy! I am trying to convert a number of text files that have been used to create old Web pages to a Web site that uses a new format. The problem is that the text files are not in a standard format. I need to identify the shortest lines in

Hey, Scripting Guy! Can I Search a Text File to Work with Specific Text?

Hey Scripting Guy! I have a log file that is produced by an application. The file is simply text, and is not really formatted in any discernable way. I can open the log in Notepad and use the <ctrl-f> (control –f) command to search the text file

Hey, Scripting Guy! Why Was Beginner Event 3 in the Summer Scripting Games So Hard?

Hey Scripting Guy! I really enjoyed participating in the 2009 Summer Scripting Games. The events were really cool, and I learned a lot. One minor criticism is in order: I thought the shot put beginner event 3 was too hard. I think it would have been better

Hey, Scripting Guy! How About a Formal Wrap-Up of the 2009 Summer Scripting Games?

Hey Scripting Guy! Whatever happened to the Summer Scripting Games? There was all the build up to the games, and then the games were over, and that was it. It would be nice to know what happened. Can you do a recap or something? -- ZQ Hello ZQ, Microsoft

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

Troubleshooting a VBScript Script That Reports All Software Installed on a Computer Hey Scripting Guy! I am pretty new to use VBScript and seem to have hit a wall. I put together the script below to output a file containing all the software installed

Hey, Scripting Guy! How Do I Create a CSV File from Within Windows PowerShell?

Hey Scripting Guy! I am having a problem trying to create a CSV file from within Windows PowerShell. I thought at first I could use the Write-Host cmdlet to do this. I came up with this command: Write-Host "col1,col2,col3" >> "C:\fso\test.csv" But

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

How Can I List Files and Folders with Special Characters in Their Names? Hey, Scripting Guy! First I would like to thank you for all the good humour you present me every time I need you. I’m trying to use one of your scripts to list the files and folders

Hey, Scripting Guy! How Can I Load a Drop-Down List From a Text File?

Hey, Scripting Guy! I have a text file that has a list of different store numbers and I would like to be able to populate a drop down list of an HTA. -- MH Hi MH, The basic task of reading data from a text file and using it to populate a drop-down list

Hey, Scripting Guy! How Can I Replace a Series of Variables Found in a Text File with Values Taken From That File?

Hey, Scripting Guy! I have a text file containing TSQL syntax. In this file are a number of variables: @P1, @P2, @p3, and so on, up through @P58. The bottom line of the text file contains replacement values for these variables; for example, I need to
Posted by ScriptingGuy | 0 Comments

Hey, Scripting Guy! How Can I Modify a Text File Based on the Value of a Particular Column in the File?

Hey, Scripting Guy! I need some help in cleaning up a text file. I have a file that contains multiple columns of data, and I need to either delete or modify lines in the file based on the value of the 13 th column. Can you help me? -- AM Hey, AM. You
Posted by ScriptingGuy | 0 Comments

Hey, Scripting Guy! How Can I Extract Miscellaneous Computer Names From a Text File?

Hey, Scripting Guy! I have a text file containing thousands of events. I need to read each line in that file and look for the name of the computer where an operation failed. The computer names can – and will – vary in length; however, the name will always
Posted by ScriptingGuy | 0 Comments

How Can I Use Windows PowerShell to Report Back the Name and Creation Date for Files Containing a Specified String Value?

Hey, Scripting Guy! Using Windows PowerShell, how can I search for a string value in all the files in a folder full of text files, then report back the file name and creation date for each file where that string value was found? Oh, and I’d like to have

Hey, Scripting Guy! How Can I Search for a Word in a Text File and Return the Entire Line Where That Word Was Found?

Hey, Scripting Guy! I have a scenario in which I need to read a list of names from a text file. I then need to search for each of those names in a second text file; if a name is found I need to extract the entire line in which that name appears. I’ve
Posted by ScriptingGuy | 0 Comments

Hey, Scripting Guy! How Can I Sort a Text File Based on a Specific Column in That File?

Hey, Scripting Guy! I have a text file composed of many different lines; each line has a number of fields, with the fields separated from one another by a tab character. I need to sort this text file based on the value of one of these fields. How can
More Posts Next page »
 
Page view tracker