Hi folks,
I am re-writing an old program. The code is similar to the below. I know that op-sys can be overridden manually but I don't think that this applies in this case. I always assumed opsys only returned ms-dos for windows 3.1 and earlier machines; basically ever since Windows 95, it always returned win-32. I assume that the opsys function does not return ms-dos anymore? Does anyone know if that is correct?
Also in terms of windows 64 bit, everything I can find so far say that opsys does not return win64 at all, is anyone else aware that this is incorrect?
Just curious.
I am re-writing an old program. The code is similar to the below. I know that op-sys can be overridden manually but I don't think that this applies in this case. I always assumed opsys only returned ms-dos for windows 3.1 and earlier machines; basically ever since Windows 95, it always returned win-32. I assume that the opsys function does not return ms-dos anymore? Does anyone know if that is correct?
Also in terms of windows 64 bit, everything I can find so far say that opsys does not return win64 at all, is anyone else aware that this is incorrect?
Just curious.
Code:
if opsys = "win32" then do:
result = session:set-wait-state("").
run _osprint.p (input ?, input ip-filename, input 100, input 1, input 0, input 0, output vlPrinted).
end.
if opsys = "msdos" then do:
run setorientation.p (input 2).
run _osprint.p (input ?, input ip-filename, input 100, input 1, input 0, input 0, output vlPrinted).
run setorientation.p (input 1).
end.
else if opsys = "unix" then
unix silent value("qprt " + trim(ip-filename)).