Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running DOS programs
Message
From
01/04/2004 13:27:20
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00891445
Message ID:
00891542
Views:
22
It is an EXE, however, it is called from a DOS batch file with parameters. I was sure it was a mem allocation problem. I solved it (apparently) by taking a copy of foxrun.pif,putting it in the working directory of the DOS program I want to run, and changing the "cmd line" to a batch file with the parameters required. I set conventional memory to Auto, initial environment to 512, XMS memory to 1024 and clicked "Uses HMA". In VFP is simply run the pif file.

I don't know how many of these changes were necessary but it works and I'm happy. I can't really experiment with it because it's on a client's remote computer. Otherwise, I'd play around with it to see what settings were really needed.

Thanks for your response. Did you have some suggestions in mind? I just don't know too much about this general area.

>What is the "DOS program"? Is it executable file? How do you call it from VFP?
>
>
>>I have a VFP 6 app that needs to run a dos command. It fails and I think it's because there is not enough conventional memory available. So, I created a PIF file that names the command to run. For memory I set it to 640 (dropdown selection on the memory page). But, when I edit properties I see that it reverts to Auto. There are several memory selections: Conventional, Initial, EMS, XMS, DPMI, protected mode, etc. Not sure what to set here. VFP help refers to KB Required text box in PIF files but I don't see it, just the dropdowns. I'm running Win 2k Pro.
>>
>>Any tips out there for maximizing memory available for DOS programs?
>>
>>Thanks a bunch,
>>Allen
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform