Reputation: 629
I'm trying to execute this test batch file from 32 bit application made in delphi 7. I'm using simple ShellExecute('install.cmd',SW_HIDE) function. The problem is that due to 32 bit host application first line is ignored. I know why windows does that but my question is how to disable that default behaviour. I tried replacing "System32" with "SysNative" but it was interpreted by xcopy as regular folder.
Install.cmd
xcopy "SomeLibrary_64bit.dll" "%SYSTEMROOT%\System32\" /Y
xcopy "SomeLibrary_32bit.dll" "%SYSTEMROOT%\SysWOW64\" /Y
Upvotes: 0
Views: 1285
Reputation: 629
Ok. It turns out that solution to my problem is to execute script via specific 64 bit cmd.exe. For example
RunCMD(WinDir+'\SysNative\cmd.exe /c "'+programdir+'\Tools\AviSynth\Install.cmd"',SW_HIDE);
Upvotes: -1