• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

RFA - Operating System - Variables

Messages
1,361
Country
scotland
Hi Folks

Any assitance would be much appreciated.

I need some Operating Sytem related info,
specifically to support FS8/9/X users
across a variety of potential OS's.

Your PC doesn't need to have FS installed.



FS version supported OS's -
From MS's listed requirements -
FS8 - 98/98SE/Me/2000/XP/Vista/7
FS9 - 98/98SE/Me/2000/XP/Vista/7
FSX - XP/Vista/7



Purpose -
For use in a complex a batch file task
which enables/disables FS-version-specific scenery bgls,
and additionally generates a date/time named log file.
e.g.
LOG_FILE_20100312_194900_*.txt
i.e.
LOG_FILE_YYYYMMDD_HHMMSS_*.txt



Operating Systems -

I'm looking for info from the following OS's -

9x family -
Windows 95
Windows 98
Windows 98SE
Windows ME (Millenium)

NT family -
Windows NT
Windows 2000
Windows XP (already got this data)
Windows Vista
Windows Server 2003
Windows Fundamentals
Windows 7

Any other NT family version I've missed ?



How to help -
I've attached a zip containing 3 batch files.

They'll extract some OS time & date related info,
and don't do anything malicious.

Please -
- Unzip to any location.
- Run/double-click the file named RUN_THIS_ONLY_USER_OS_Date_Time.bat.
- Paste the contents of !_DEBUG_FILE_USER_OS_Date_Time.txt into your forum reply, wrapped in CODE tags (# button).
- Title your post with your Operating Systems name, (as per my example for XP below).



How it works -
Running RUN_THIS_ONLY_USER_OS_Date_Time.bat
calls the other two ACTION_GENERIC_GET_* batch files
generating a log file titled !_DEBUG_FILE_USER_OS_Date_Time.txt
which will contain the data I'm looking for.

NB
For the 9x family, I do expect some errors.



PS
I only need one response per OS,
unless you've got an unusual result different from previous posters.



Many Thanks
ATB
Paul

EDIT -
Replaced attachment with version 2

Help please any Win 2000, Vista, or Win 7 users. :spushpin:

PS - Should work for all countries, except Bulgaria.
 
Last edited:
Results - Windows XP

Code:
PC_Nodename=DB55FN0J
PC_OS_Class=NT
PC_OS_Class_Is_9x=0
PC_OS_Class_Is_NT=1
PC_OS_CmdExtn_Present=Not Initialised.
PC_OS_Detail=Microsoft Windows XP [Version 5.1.2600]
PC_OS_Guess=WinXP
PC_OS_SP=Service Pack 3
PC_OS_Var=Windows_NT
PC_WinDir=C:\WINDOWS
runtime_date=13/03/2010 
runtime_filename=ACTION_GENERIC_GET_Date_Time
runtime_folder_date_time=I:\!_ODG\Upgrades\Testing\Test_OS_Date_Time\
runtime_time=22:59
locale_iCentury_Prefix=RegKey not found
locale_iCountry_Code=44
locale_iDate_Order=1
locale_iLZero_Prefix=1
locale_iTLZero_Prefix=1
locale_sCountry_Name=United Kingdom
locale_sDate_Separator=/
locale_sShortDate_Format=dd/MM/yyyy
locale_sTimeFormat_Format=HH:mm:ss
locale_sTime_Separator=:
date_block_day=13
date_block_month=03
date_block_year=2010
date_DD=13
date_MM=03
date_YY=2010
date_YYYYMMDD=20100313
time_block_hours=22
time_block_minutes=59
time_block_seconds=00
time_HHMMSS=225900
return_string_datetime=20100313_225900
ERROR_DATE_TYPE=No sDateSetup error occured.
 
Hi Folks

Replaced attachment with version 2.
Please see original post.

Hopefully now cross OS compatible.

Vista & Win 7 users - Help please !

ATB
Paul
 
Win7x64

Here you go, Paul:
Code:
PC_Nodename=DELL-PC
PC_OS_Assessed_As=WinVista
PC_OS_Class=NT
PC_OS_Class_Is_9x=0
PC_OS_Class_Is_NT=1
PC_OS_CmdExtn_Present=Not Initialised.
PC_OS_Detail=Microsoft Windows [Version 6.1.7600]
PC_OS_Var=Windows_NT
PC_WinDir=C:\Windows
runtime_date=Fri 03/19/2010
runtime_filename=AG_G_DT
runtime_folder_date_time=C:\DATA\Test\RFA_Operating_System_Variables_V2\
runtime_time=18:53:09.73
locale_iCentury_Prefix=RegKey not found
locale_iCountry_Code=1
locale_iDate_Order=0
locale_iLZero_Prefix=1
locale_iTLZero_Prefix=0
locale_Locale_Data=en-US
locale_sCountry_Name=United States
locale_sCountry_Name_DESPACED=United_States
locale_sDate_Separator=/
locale_sShortDate_Format=M/d/yyyy
locale_sTimeFormat_Format=h:mm:ss tt
locale_sTime_Separator=:
date_block_day=19
date_block_month=03
date_block_year=2010
date_DD=19
date_MM=03
date_YY=2010
date_YYYYMMDD=20100319
time_block_hours=18
time_block_minutes=53
time_block_seconds=09
time_HHMMSS=185309
return_string_datetime=20100319_185309
ERROR_DATE_TYPE=No sDateSetup error occured.
ERROR_FIND_TEST=SUCCESS windir
ERROR_OS_TEST=SUCCESS NT
 
Vista x32 bit

Code:
PC_Nodename=DEVELOPMENT
PC_OS_Assessed_As=WinVista
PC_OS_Class=NT
PC_OS_Class_Is_9x=0
PC_OS_Class_Is_NT=1
PC_OS_CmdExtn_Present=Not Initialised.
PC_OS_Detail=Microsoft Windows [Version 6.0.6001]
PC_OS_Var=Windows_NT
PC_WinDir=C:\Windows
runtime_date=Fri 03/19/2010
runtime_filename=AG_G_DT
runtime_folder_date_time=P:\Test\RFA_Operating_System_Variables_V2\
runtime_time=19:00:52.43
locale_iCentury_Prefix=RegKey not found
locale_iCountry_Code=1
locale_iDate_Order=0
locale_iLZero_Prefix=1
locale_iTLZero_Prefix=0
locale_Locale_Data=en-US
locale_sCountry_Name=United States
locale_sCountry_Name_DESPACED=United_States
locale_sDate_Separator=/
locale_sShortDate_Format=M/d/yyyy
locale_sTimeFormat_Format=h:mm:ss tt
locale_sTime_Separator=:
date_block_day=19
date_block_month=03
date_block_year=2010
date_DD=19
date_MM=03
date_YY=2010
date_YYYYMMDD=20100319
time_block_hours=19
time_block_minutes=00
time_block_seconds=52
time_HHMMSS=190052
return_string_datetime=20100319_190052
ERROR_DATE_TYPE=No sDateSetup error occured.
ERROR_FIND_TEST=SUCCESS windir
ERROR_OS_TEST=SUCCESS NT
 
Hi Folks

Cheers Bill
Much appreciated. :D

Glad its working on Vista 32 and 64.

Anyone else -
particularly if it doesn't work for you.

Many Thanks
ATB
Paul
 
Hey Paul,

Here's mine.

I have an Apple iMac 24" Unibody; latest Max OSX 64 and run WinXP 32Bit in Bootcamp (full OS mode, starts in XP mode, not a dual parallel).



Code:
PC_Nodename=ELIJAH
PC_OS_Assessed_As=WinXP
PC_OS_Class=NT
PC_OS_Class_Is_9x=0
PC_OS_Class_Is_NT=1
PC_OS_CmdExtn_Present=Not Initialised.
PC_OS_Detail=Microsoft Windows XP [Version 5.1.2600]
PC_OS_Var=Windows_NT
PC_WinDir=C:\WINDOWS
runtime_date=Mon 03/22/2010
runtime_filename=AG_G_DT
runtime_folder_date_time=C:\Documents and Settings\Lionheart\Desktop\RFA_Operating_System_Variables_V2\
runtime_time=11:25:09.29
locale_iCentury_Prefix=RegKey not found
locale_iCountry_Code=1
locale_iDate_Order=0
locale_iLZero_Prefix=1
locale_iTLZero_Prefix=0
locale_Locale_Data=00000409
locale_sCountry_Name=United States
locale_sCountry_Name_DESPACED=United_States
locale_sDate_Separator=/
locale_sShortDate_Format=M/d/yyyy
locale_sTimeFormat_Format=h:mm:ss tt
locale_sTime_Separator=:
date_block_day=22
date_block_month=03
date_block_year=2010
date_DD=22
date_MM=03
date_YY=2010
date_YYYYMMDD=20100322
time_block_hours=11
time_block_minutes=25
time_block_seconds=09
time_HHMMSS=112509
return_string_datetime=20100322_112509
ERROR_DATE_TYPE=No sDateSetup error occured.
ERROR_FIND_TEST=SUCCESS windir
ERROR_OS_TEST=SUCCESS NT
 
Hi Folks

Cheers Bill,
Good result.
That was another version worth trapping for.



PS
I've made these bat files as generic as possible,
so any developer may reuse them for their own packages.



I'm also aware my current implementation
does not adequately trap for MMM options.

e.g.
date_YYYYMMDD=2010Mar20
should result in -
date_YYYYMMDD=20100320



New version imminent. :D



Much appreciated.
ATB
Paul
 
Last edited:
For what it is worth Paul,

runtime_date=Fri 03/26/2010
runtime_filename=AG_G_DT
runtime_folder_date_time=C:\Temp\operation variables\
runtime_time=18:36:57.52
locale_iCentury_Prefix=RegKey not found
locale_iCountry_Code=1
locale_iDate_Order=0
locale_iLZero_Prefix=1
locale_iTLZero_Prefix=1
locale_Locale_Data=en-US
locale_sCountry_Name=Verenigde Staten
locale_sCountry_Name_DESPACED=Verenigde_Staten
locale_sDate_Separator=/
locale_sShortDate_Format=M/d/yyyy
locale_sTimeFormat_Format=HH:mm:ss
locale_sTime_Separator=:
date_block_day=26
date_block_month=03
date_block_year=2010
date_DD=26
date_MM=03
date_YY=2010
date_YYYYMMDD=20100326
time_block_hours=18
time_block_minutes=36
time_block_seconds=57
time_HHMMSS=183657
return_string_datetime=20100326_183657
ERROR_DATE_TYPE=No sDateSetup error occured.
ERROR_FIND_TEST=SUCCESS windir
ERROR_OS_TEST=FAILED NT
runtime_date=Fri 03/26/2010
runtime_filename=AG_G_DT
runtime_folder_date_time=C:\Temp\operation variables\
runtime_time=18:38:09.41
locale_iCentury_Prefix=RegKey not found
locale_iCountry_Code=1
locale_iDate_Order=0
locale_iLZero_Prefix=1
locale_iTLZero_Prefix=1
locale_Locale_Data=en-US
locale_sCountry_Name=Verenigde Staten
locale_sCountry_Name_DESPACED=Verenigde_Staten
locale_sDate_Separator=/
locale_sShortDate_Format=M/d/yyyy
locale_sTimeFormat_Format=HH:mm:ss
locale_sTime_Separator=:
date_block_day=26
date_block_month=03
date_block_year=2010
date_DD=26
date_MM=03
date_YY=2010
date_YYYYMMDD=20100326
time_block_hours=18
time_block_minutes=38
time_block_seconds=09
time_HHMMSS=183809
return_string_datetime=20100326_183809
ERROR_DATE_TYPE=No sDateSetup error occured.
ERROR_FIND_TEST=SUCCESS windir
ERROR_OS_TEST=FAILED NT
 
Hi Folks

Roby -
Cheers.
Much appreciated.

Everyone -
Thanks for your input.

Testing identified a set of date-formats I'd missed.

I'm now using a different mechanism
which universally provides a standardised output.

No further samples required.
Please consider this thread closed.

Thanks again
ATB
Paul
 
Back
Top