I must be able to pass the .bat file a single fully qualified file name from the POSIX subsystem under NT4 sp6a
I have tried /bin/runwin32 but it appears to expect either an .exe or something to have a real window so runwin32 .../cmd.exe /C .../mybat.bat parm1 simply opens a cmd.exe session. I tried runwin32 .../mybat.bat parm1 and it appeared to simply scroll the .bat file by as if it was trying to execute a unix script which it was not happy with.
I have also tried the method discussed at
but that gave me no joy.
$ksh -x .../mybat.bat parm1 did the same thing as the second attempt at runwin32 above.
$sh -x .../mybat.bat parm1 was happier but still did nothing leaving only the complaints about the odd REM of if statements.