Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What DOS am I using?
Message
 
To
03/10/2001 11:47:23
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00563673
Message ID:
00563701
Views:
20
I believe, that directly in the batch file you can use 'ver' command to verify the version and 'if' and 'goto' to skip commands accordingly. See DOS Help for more detail.

>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
Previous
Reply
Map
View

Click here to load this message in the networking platform