Hi all,
I've got apps in FPD2.6, FPW2.6a, and VFP7. All of these apps are run on different versions of Windows. ie W95, W98, W2K, WXP(coming). Most of these apps call DOS batch files to run some DOS programs. That's the problem.
In DOS up to what's in Win2K, the START /WAIT command works as expected. The program is run from the batch file and the batch file waits until the called prog finishes before it continues. In DOS from Win2K up, the START /WAIT does not operate that way and essentially blows past the line containing the command doing nothing. (Don't get picky on me. I know what it really does.).
The simple solution in Win2K is to remove the START /WAIT and leave the rest of the line intact. Then the batch file runs the way it does in previous versions of DOS.
Unfortunately, as noted above, I can't tell which workstation will run what app.
Is there some way programatically that I can determine which DOS or OS I'm running so that I can run the proper batch commands? Is there a simple way around this? We have several hundred batch files to contend with.
Pete
Peter Adams
FoxPro Programmer
Compu-Mail
Heisenberg was probably right...