I am trying to run a batch file to remove a program that requires me to use its .exe file. I created a batch file that works perfectly on the workstation. However, when I run the program through SCCM 2012 Sp1 it fails. I have read about the %~dp0, and thought I had everything working correctly, but it still fails via SCCM. The UninstallWA.exe program is located on the local workstations in the C:\Program Files (x86)\Winamp\
I created this batch file below:
START %~dp0UninstWA.exe C:\"Program Files (x86)"\Winamp\
RD /Q /S "c:\Program Files (x86)\Winamp\"
What am I missing? The first section runs the uninstall program, then the second section removed the remaining folder, as the Uninstall does not. Any help would be appreciated. Again it works when running locally on a workstation so I know it has to be in the way SCCM is reading/processing the bat file.
Thanks in advance,