DPM
Since this is a Vista newsgroup and putting a script within a post would not be appropriate for some frequenting this group, may I suggest that you repost this to the scripting newsgroup
news:\\msnews.microsoft.com\microsoft.public.windo ws.server.scripting
--
Peter
Please Reply to Newsgroup for the benefit of others
Requests for assistance by email can not and will not be acknowledged.
"DPM" <> wrote in message news:...
> Thanks.
> Any ideas on how I can do this ? Some sort of clue or example would help.
> Do I need to create an exe using a programming language ?
>
>
> "Peter Foldes" <> wrote in message
> news:%23E$...
> You can always run a simple script
>
> --
> Peter
>
> Please Reply to Newsgroup for the benefit of others
> Requests for assistance by email can not and will not be acknowledged.
>
> "DPM" <> wrote in message
> news:...
>> Hi,
>>
>> Is there a way to know if the OS version is Vista or higher through a
>> MS-DOS
>> batch
>> file ?
>>
>> Following is a sample which I managed to do
>>
>> Ver > OSVer.Txt
>> FIND "[Version 6." OSVer.Txt > NUL
>> IF ERRORLEVEL 1 ECHO OS is not Vista
>> IF NOT ERRORLEVEL 1 ECHO OS is Vista
>>
>> The problems which I have regarding the above are,
>> - How to get the output from the VER command to a variable ? or is there
>> any
>> other command ?
>> - Say if I send the output from VER to a text file how to know whether the
>> OS is Vista and above ?
>> (FIND only searches for a perticular text)
>>
>> Please advise.
>>
>>
>
>
|