The Best Cyprus Community

Skip to content


If you’re using Windows Vista…

Feel free to talk about anything that you want.

If you’re using Windows Vista…

Postby Get Real! » Sat May 07, 2011 7:32 pm

If you’re using Windows Vista…

I urgently need a copy of your environment variables for research purposes.

To get a list of your environment variables in W7 you would… (Vista should be very similar)

Type “CMD” in your Start>field box and press enter > Type “Set” and press enter > R-Click and “Mark” > paste clipboard contents in Word, Notepad, or directly into a PM to me!

I actually need a list for 32bit and 64bit Vista so please specify which version you have.

Thanks in advance!
User avatar
Get Real!
Forum Addict
Forum Addict
 
Posts: 48333
Joined: Mon Feb 26, 2007 12:25 am
Location: Nicosia

Postby CBBB » Sat May 07, 2011 10:05 pm

How much are you paying?
User avatar
CBBB
Leading Contributor
Leading Contributor
 
Posts: 11521
Joined: Tue May 20, 2008 1:15 pm
Location: Centre of the Universe

Postby kurupetos » Sat May 07, 2011 10:07 pm

CBBB wrote:How much are you paying?


A bucket of freshly picked garaoli. :wink:
User avatar
kurupetos
Leading Contributor
Leading Contributor
 
Posts: 18855
Joined: Tue Jul 31, 2007 7:46 pm
Location: Cyprus

Postby CBBB » Sat May 07, 2011 11:08 pm

kurupetos wrote:
CBBB wrote:How much are you paying?


A bucket of freshly picked garaoli. :wink:


Not of interest, now if it was ambelopoulia.....
User avatar
CBBB
Leading Contributor
Leading Contributor
 
Posts: 11521
Joined: Tue May 20, 2008 1:15 pm
Location: Centre of the Universe

Postby quattro » Sat May 07, 2011 11:12 pm

CBBB wrote:How much are you paying?


a dozen .................you know.... :roll: :roll: :roll: :roll:
User avatar
quattro
Regular Contributor
Regular Contributor
 
Posts: 1201
Joined: Tue Jan 04, 2011 9:16 pm
Location: Nicosia

Postby Hazza » Sun May 08, 2011 10:48 am

Sent via PM
User avatar
Hazza
Regular Contributor
Regular Contributor
 
Posts: 2383
Joined: Wed Mar 23, 2005 6:24 pm
Location: Larnaka.. Rating: Very Sexy

Postby DT. » Sun May 08, 2011 11:04 am

Don't do it!!
It's a trap!

:shock:
User avatar
DT.
Leading Contributor
Leading Contributor
 
Posts: 12684
Joined: Sun Nov 12, 2006 8:34 pm
Location: Lefkosia

Postby cyprusgrump » Sun May 08, 2011 11:28 am

DT. wrote:Don't do it!!
It's a trap!

:shock:


Too late... Hazza is lost to us now.... :cry:
User avatar
cyprusgrump
Main Contributor
Main Contributor
 
Posts: 8520
Joined: Thu Sep 01, 2005 4:35 pm
Location: Pissouri, Cyprus

Postby Get Real! » Sun May 08, 2011 12:00 pm

Thanks a million to those that responded… you saved me from wasting 2-3 hours setting up a Vista box just to get this! Ok, here’s the result… a routine that detects the Windows version via the very reliable %SYSTEMROOT% (not to be confused with %WINDIR%). This is in Pascal but it can easily be adopted in VB or other languages so use the code freely…

{-------------------------------------------------------------------}
{ Determines Windows version via %SYSTEMROOT%

0. Windows 2000/16-bit
1. Windows XP/32-bit
2. Windows XP/64-bit
3. Windows Vista/32-bit
4. Windows Vista/64-bit
5. Windows 7/32-bit
6. Windows 7/64-bit
}
{$A+,B-,D-,E-,F-,G+,I-,K-,L-,N+,O-,P-,Q-,R-,S-,T-,V-,W-,X-,Y-}

USES Dos;
{-------------------------------------------------------------------}
FUNCTION WindowsVersion:String;
VAR Win64,OS,S:String;
BEGIN
OS:='';
Win64:=GetEnv('PROGRAMFILES(X86)');
S:=GetEnv('SYSTEMROOT');
IF S='C:\Windows' THEN {Windows 7 or Vista}
BEGIN
IF GetEnv('PSModulePath')<>'' THEN
OS:='Windows 7' ELSE OS:='Windows Vista';
END ELSE
IF S='C:\WINDOWS' THEN {Windows XP}
BEGIN
OS:='Windows XP';
END ELSE
IF S='C:\WINNT' THEN {Windows 2000 or NT 5.1}
BEGIN
OS:='Windows 2000/16-bit'; Exit;
END ELSE
IF S='C:\WINNT35' THEN {NT 3.5}
BEGIN
OS:='Windows NT 3.5'; Exit;
END ELSE
BEGIN {NT Terminal Server etc, but who cares!}
OS:='Undetermined'; Exit;
END;
IF Win64='' THEN OS:=OS+'/32-bit' ELSE OS:=OS+'/64-bit';
WindowsVersion:=OS;
END;
{-------------------------------------------------------------------}
BEGIN
Writeln(WindowsVersion);
END.
User avatar
Get Real!
Forum Addict
Forum Addict
 
Posts: 48333
Joined: Mon Feb 26, 2007 12:25 am
Location: Nicosia

Postby kurupetos » Sun May 08, 2011 12:28 pm

Image
User avatar
kurupetos
Leading Contributor
Leading Contributor
 
Posts: 18855
Joined: Tue Jul 31, 2007 7:46 pm
Location: Cyprus

Next

Return to General Chat

Who is online

Users browsing this forum: No registered users and 0 guests