Dear RajeshK:
On Jan 18, 5:31=A0am, RajeshK <rkco...@[EMAIL PROTECTED]
> wrote:
> Hello
>
> I am having some problem in my application when it is
> being run from a Vista machine. My clients have mix-mode
> setup, i.e. few machines running XP and few new
> machines (now) running Vista.
>
> I am making a work-around for Vista machine but would
> like to retain the old-logic when they are being run
> from XP/98/2k machines.
>
> In order to that I need my program to auto-identify
> which OS it is being run from.
>
> How do I get the OS from which my application is
> being run on a network drive ?
What problem are you having?
Are you interested on the OS on the machine that is running your code,
or the machine that you are getting the code from?
> I tried with blswprun("VER >temp001.txt")
This will only return the OS version on the machine that *runs* your
code, not (necessarily) sources your code.
> This returns MS-DOS Version 5.00.500 in all the
> cases i.e.
> =A0 - run from local Vista drive
> =A0 - run from mapped XP drive in a vista machine
> =A0 - run from local XP drive.
It is returning the OS on the computer running the code. I have XP,
and VER returns
5.1.2600
> However, when I run the VER command from the dos
> prompt (CMD.EXE) on a Vista machine it shows me
> "Windows version 6.0.."
>
> How can I get this value from Clipper on a Vista machine ?
Run( "cmd.exe /c ver >temp001.txt" )
=2E.. might work
David A. Smith


|