Forum Discussion
AB21805
Dec 05, 2022Bronze Contributor
replacing a file using intune
Hi all, I am trying to replace a file which is located on devices in C:\ProgramFiles\ExamWritePad\ The file is called ExamWritePadSettings.Json How do I do this? I have tried a bat f...
- Dec 05, 2022You could add a version file in the C:\Program Files\ExamWritePad" folder, for example, a v1.txt by adjusting the install.cmd with to this:
Copy /y .\ExamWritePadSettings.Json "C:\Program Files\ExamWritePad"
echo "v1" > "C:\Program Files\ExamWritePad\v1.txt"
If you ever have to update it again, adjust the install.cmd with:
Copy /y .\ExamWritePadSettings.Json "C:\Program Files\ExamWritePad"
echo "v2" > "C:\Program Files\ExamWritePad\v2.txt"
And change the detection to C:\Program Files\ExamWritePad\v2.txt
AB21805
Dec 05, 2022Bronze Contributor
Hi Harm,
Thank you
What would the detention rule be?
Thank you
What would the detention rule be?
KurtBMayer
Dec 05, 2022Steel Contributor
Another possibly simpler detection rule would be to use the "Date Modified" method. If the file date is greater than or equal to MM/DD/YYYY, it's the latest version and doesn't need to run.
Please like and mark this thread as answered if it's helpful, thanks!