![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | Using Add-Content to add text to a certain location of a file. Hi, I'm trying to get my script to write values to specific locations in an INI file and i'm currently using an ini editor, but i'd rather integrate that into the script and get rid of the INI editor. How is it possible to do that using add-content? For instance, i have idents like PCAssetNbr and PCModel, and this information is gathered automatically through WMI and passed into variables. I'd like the script to be able to add that to the end of that current ident. For example PCModel=MODELHERE. Is this possible? |
| | #2 (permalink) | ||||||||||||
| Guest | Re: Using Add-Content to add text to a certain location of a file. Maybe this can help: Managing INI files with PowerShell http://www.leeholmes.com/blog/Managi...owerShell.aspx ----- Shay Levi $cript Fanatic http://scriptolog.blogspot.com
| ||||||||||||
| |
| |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Output all content of text file in different columns | Jason1008 | PowerShell | 3 | 06-04-2008 12:16 AM |
| Clear-Content Cmdlet and Processing Lines in Text File | Eudaimonia | PowerShell | 9 | 12-13-2007 02:21 AM |
| Why does get-content on a text file remove crlf when cast to a string? | Mark | PowerShell | 7 | 09-22-2006 11:50 AM |
| Weirdness with get-content | replace | set-content - file content is deleted!! | Andrew Watt [MVP] | PowerShell | 4 | 05-23-2006 05:59 PM |