Angus Leeming wrote:
@echo off
if "%LANG%"=="" SET LANG=fr_FR
"C:\Program Files\LyX\bin\lyx.exe" %~1 %~2 %~3 %~4 %~5 %~6 %~7 %~8 %~9
Ok, then I'll use this code snippet to output the batch file:
std::string const arg_list = is_Win2000_or_later() ?
"%~1 %~2 %~3 %~4 %~5 %~6 %~7 %~8 %~9" :
"%1 %2 %3 %4 %5 %6 %7 %8 %9";
where is_Win2000_or_later() is drawn from here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/verifying_the_system_version.asp
bool is_Win2000_or_later()
{
}
Well, if you use the if-trick, then this single bat-file should work for
you as well:
--
@echo off
if "%LANG%"=="" SET LANG=fr_FR
if "%~1" == "~1" goto win95
"C:\program files\lyx\bin\lyx.exe" %~*
goto end
:win95
"C:\program files\lyx\bin\lyx.exe" %1 %2 %3 %4 %5 %6 %7 %8 %9
end:
--
Regards,
Asger