Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What DOS am I using?
Message
From
03/10/2001 12:09:31
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
03/10/2001 11:47:23
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00563673
Message ID:
00563691
Views:
14
This message has been marked as the solution to the initial question of the thread.
>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
Pete,
There is OS() and it has enhanced parameter in VFP7. Returns 'Windows 5.00' for w2k w/o optional parameter.
Also getenv('comspec') would return cmd.exe instead of command.exe for NT platforms.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform