That's a snippet from a script I wrote that replaced the word "CustomName" on the panel with a variable that was grabbed earlier in the script. ::CreateEntryFromFile($zip, $tempfile, "swf/Environment.xml") | Out-Null # Delete the existing Environment.xml file inside the vtz # Open a Stream Writer and write the xml data to a new temporary file $text = $text -replace "CustomName", $CustomName # Replace the existing button text ('CustomName') with the name the user provided $reader = New-Object IO.StreamReader($stream) # Read the Environment.xml file into memory # Find the Environment.xml file and open it Something like this # Open the vtz as a zip fileĪdd-Type -assembly "system.io.compression.filesystem" On the plus side it shouldn't be too difficult to script editing environment.xml in powershell.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |