I am trying to run a program which is installed in different location according to OS. I am running the program through a batch file. I saw lot of post which tell to put double quotes but it doesn't work.
if exist "C:\Program Files\Manufacturer\"
(
copy F:\Manufacturer\Manufacturer.exe "C:\Program Files\Manufacturer\Manufacturer.exe"
c:
cd "C:\Program Files\Manufacturer\"
)
else
(
copy F:\Manufacturer\Manufacturer.exe "C:\Program Files (x86)\Manufacturer\Manufacturer.exe"
c:
cd "C:\Program Files (x86)\Manufacturer\"
)
start Manufacturer.exe
What is the correct syntax?