as you can see in the title I want to use the environmental variable Userprofile in a XML-File. Already searched for awhile, couldn`t find anything suitable for my case.
Here`s my XML-File:
<?xml version="1.0" encoding="UTF-8"?>
<Reports>
<Destination>%USERPROFILE%\Desktop\Report_PDP</Destination>
<Report id="5917">
<DIS_PDP>300000212491</DIS_PDP>
<DIS_FOLDER>300000203351</DIS_FOLDER>
<PATH_PDP>%USERPROFILE%\AppData\Roaming\KPIReport\Test\300000212491.xlsm</PATH_PDP>
<PATH_FOLDER>%USERPROFILE%\AppData\Roaming\KPIReport\Test\300000203351.xlsx</PATH_FOLDER>
</Report>
<Report id="5783">
<DIS_PDP>300000169285</DIS_PDP>
<DIS_FOLDER>300000168963</DIS_FOLDER>
<PATH_PDP>%USERPROFILE%\AppData\Roaming\KPIReport\Test\300000169285.xlsm</PATH_PDP>
<PATH_FOLDER>%USERPROFILE%\AppData\Roaming\KPIReport\Test\300000168963.xlsx</PATH_FOLDER>
</Report>
<Report id="5633">
<DIS_PDP>300000113104</DIS_PDP>
<DIS_FOLDER>300000112815</DIS_FOLDER>
<PATH_PDP>%USERPROFILE%\AppData\Roaming\KPIReport\Test\300000113104.xlsm</PATH_PDP>
<PATH_FOLDER>%USERPROFILE%\AppData\Roaming\KPIReport\Test\300000112815.xlsx</PATH_FOLDER>
</Report>
</Reports>
The position of the variable is marked with %USERPROFILE%, that is how I use it in the main code, did`nt work out for the XML though.
I want to get the result of the Userprofile like: "C:\Users\FMichal" and then use it for each path in my XML.
Hope you can understand my problem so far.