I have a shell script that acts as a wrapper for a MSI that distributes CR9 runtime. I've had to add something that explicitly copies the dll files that are the heart of the runtime to the system root from a location where the batch file is running from. This is due to problems with Win2k machines, in itself, the msi does what it is supposed to do on WinXP, but not on Win2k, this problem is solved by the explicit copy.
When the script runs, it bombs out on the last line 'for %g in (*.dll) do copy /y %g %windir%\system32'
When run the script dos'nt seem to want to run the line, and just echos 'for g'
What am I doing wrong, apart from not adjusting the MSI file to do what it should be doing (not very good at writing MSI's)
cd /d %~dp0
move /Y "c:\Program Files\Common Files\Crystal Decisions\2.0\bin" "c:\Program Files\Common Files\Crystal Decisions\2.0\bin_old"
msiexec /i Crystal9.msi /quiet
cd /d SysFiles
for %g in (*.dll) do copy /y %g %windir%\system32