Hi all.
I have been messing about with creating some Scheduled Tasks for my custom DISM folder structure.
I have to edit a couple of values on several xml files but I am hitting a brick wall.
I have got the hang on loading a xml file
I have go the hang of changing a certain value on a simple xml document but when it comes to the Scheduled Task xml doc there a couple of extra lines which contain quotation marks
simple xml
scheduled task xml
on the simple xml file, using
sets the value to what I want but for the life in me I can not get the first two lines of the scheduled task xml doc to fit the script to set the value.
Anybody help me out here ?
Hope this make sense
Cheers.
I have been messing about with creating some Scheduled Tasks for my custom DISM folder structure.
I have to edit a couple of values on several xml files but I am hitting a brick wall.
I have got the hang on loading a xml file
I have go the hang of changing a certain value on a simple xml document but when it comes to the Scheduled Task xml doc there a couple of extra lines which contain quotation marks
simple xml
Code:
<database> <Author>Malcs</Author> <database>
Code:
<?xml version="1.0" encoding="UTF-16"?> <Task version="1.4" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task"> <RegistrationInfo> <Date>2021-07-13T18:53:00.9579204</Date> <Author>Edit_1</Author> <Description>Mounts the install.wim Image</Description> <URI>\DISM\01Mountinstallwim</URI> </RegistrationInfo>
on the simple xml file, using
Code:
XML.SetValue("database/Author", "Malcs");
Anybody help me out here ?
Hope this make sense
Cheers.
Comment