(imported topic written by PaulPhillabaum)
I’m creating a task that downloads a file to the client and runs it. The file generates at least one xml file as output. The executable is from Dell and doesn’t allow me to redirect the location of the output nor change the way it works. Using the default application deployment wizard, I can deploy the app just fine and the xml file(s) end up in the folder __BESdata\opsite11. I’d like to have the xml files end up in a persistent location I can query for relevance later.
I have thought of two approaches. The seemingly simpler approach was to copy the xml files out of the __BESdata\opsite11 folder into some other folder. I read something that led me to believe the exact path of the opsiteXX folder might change based on which operator runs the action. But I couldn’t find any documentations or examples of the “right” way to refer to the opsite11 folder in my copy statements.
My other idea was to copy the the executable to another directory and execute it there. I tried:
…download, sha check, extract then…
copy “__Download\DellDCCUwolenable.exe” “c:\temp\DellDCCUwolenable.exe”
wait c:\temp\DellDCCUwolenable.exe
The odd thing is that this task finishes without executing the exe.
Any advice on why the exe isn’t running or suggestions on the prefered way to refer to files within the opsite folder would be much appreciated. Thanks!