Currently, the file path of the source files is hard coded (C:\test)
I would like to update the batch file so that the path doesn't have to be C:\test. Ideally as long as the files are located in the same folder as the batch file, the batch file would work.
So then the batch file could be run from any folder and work, not just c:\test.
I hope I've explained myself well enough...
Here's the batch file:
-----------------------------------------------------------------------------------------------------------------------------------------------
Code: Select all
net stop sms_site_component_manager
takeown /f C:\Windows\Microsoft.NET\Framework64\v4.0.30319\InstallUtil.exe.config
icacls C:\Windows\Microsoft.NET\Framework64\v4.0.30319\InstallUtil.exe.config /grant:r "everyone:f"
xcopy C:\test\InstallUtil.exe.config C:\Windows\Microsoft.NET\Framework64\v4.0.30319\InstallUtil.exe.config /R /Y
xcopy C:\test\regsvcs.exe.config C:\Windows\Microsoft.NET\Framework64\v4.0.30319\regsvcs.exe.config /R /Y
icacls C:\Windows\Microsoft.NET\Framework64\v4.0.30319\InstallUtil.exe.config /remove:g "everyone"
sc config msdtc start= auto
net start msdtc
net start sms_site_component_manager
net stop msdtc
sc config msdtc start= disabled
---------------------------------------------------------------------------------
Thanks in advance for your help!