Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Clipper > Re: Vista and O...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 3827 of 3904
Post > Topic >>

Re: Vista and OS version

by dlzc <dlzc1@[EMAIL PROTECTED] > Jan 18, 2008 at 06:43 AM

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




 2 Posts in Topic:
Vista and OS version
RajeshK <rkcoral@[EMAI  2008-01-18 04:31:50 
Re: Vista and OS version
dlzc <dlzc1@[EMAIL PRO  2008-01-18 06:43:02 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 7:48:45 CDT 2008.