I have an xml file which makes reference to several other files listed one after the other in order. The files listed have some basic metadata listed for each of these files respectively. The metadata includes such entries as File Size, MD5 hash, and File Type.
Can someone provide me with some sample code that shows how to go in and change these metadata values?
Specifically I can Generate a new MD5 Hash and I can determine file size with Powershell scripting but then how do I take that MD5 hash and File Size result and use them to replace old existing MD5, File Size, and File Type information listed for multiple file listings within the XML document?
I was thinking of something like assigning a variable to each on of the results that were generated by PowerShell but then I still have no way to reference those variables to the various files and their respective metadata uniquely, that will be listed in the XML document. I need to be able to perform all of the above-mentioned automatically.
Please answer ASAP.