First post, by hcn
How can I get this statemenet in a turbo pascal program to work in dosbox :
exec('c:\jhdata\command.com','/c c:\jhdata\lotto\gevinlot.exe');
Best regards
Ant
How can I get this statemenet in a turbo pascal program to work in dosbox :
exec('c:\jhdata\command.com','/c c:\jhdata\lotto\gevinlot.exe');
Best regards
Ant
copy command.com to c:\jtdata
Water flows down the stream
How to ask questions the smart way!
[Thread moved to DOSBox General Section]
wrote:copy command.com to c:\jtdata
I forgot to inform you: windows 7 64-bit version seems not to accept /use command.com (I have a command.com from vista copied to my new windows 7 pc. Is there a command.com somewhere in windows 7 (I can't find it).
Help please.....
Best regards
Ant
This forum is about DOSBox, not the win7 command shell.
Seems you have the source...why not recompile it with Free Pascal? There's a DOS go32v2 version that could work with DosBox.
Also does gevinlot.exe really need a new shell? You could try
exec('c:\jhdata\lotto\gevinlot.exe');
by itself, see if it works. It might or might not need
swapvectors;
On another note gevinlot.exe will probably not run under x64, since it's likely to be a 16 bit program...needing commad.com and all (that won' run either, same reasons).
thankyou bloodbat,
But the issue is to make my old turbopascal programs run in x64. And the mentioned exec-statement is 1 out of more commands that do not work in dosbox.
Is there a way to do this in dosbox on win 7 x64?
I have now installed virtualbox and in that installed windows xp. In there the programs work, but it is workaround, that I don't like.
Hope there is another way, and somebody can help.....
Best regards
Please distinguish between the Windows command prompt and the Dos emulator Dosbox. Otherwise no one can be sure of what you write.
16bit programs WILL NOT work directly on 64bit Windows. No way around that. You will need a VM or an emulator like dosbox.
If you need help with more funczltions you will have to be more detailed.
If you have the source for both...there's Free Pascal for both Win x32 and x64, they will work under Win 64, but you'll probably need to make do without command.com.
FP will recompile your progs with minimal fuzz, unless you use inline assembly, intr and such.
wrote:thankyou bloodbat, […]
thankyou bloodbat,
But the issue is to make my old turbopascal programs run in x64. And the mentioned exec-statement is 1 out of more commands that do not work in dosbox.
Is there a way to do this in dosbox on win 7 x64?
I have now installed virtualbox and in that installed windows xp. In there the programs work, but it is workaround, that I don't like.Hope there is another way, and somebody can help.....
Best regards
wrote:wrote:copy command.com to c:\jtdata
I forgot to inform you: windows 7 64-bit version seems not to accept /use command.com (I have a command.com from vista copied to my new windows 7 pc. Is there a command.com somewhere in windows 7 (I can't find it).
Just copy the DOSBox built-in "command com" file from the emulated Z: drive to the target location. You have to do the copying from inside DOSBox with the command Qbix told you, as the Z: drive does not exist as far as Windows is concerned.
tearex