Loading ...
Sorry, an error occurred while loading the content.

12598Re: [Clip] Where Do I Find What Version of Windows?...

Expand Messages
  • Jody
    Oct 12, 2004
    • 0 Attachment
      Hi Larry

      Yes, I got that already, but thanks much! I was hoping it would
      be and it might be just a few differences. All know when I get
      some more results. The lines will be wrapped and it is just for
      writing out write now as I gather info. But, this is sort of
      what I'm shooting for:

      H=WinOS
      ^!IfSame "^$GetRegValue(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion:ProductName)$" "Microsoft Windows 98" Next else Look4XP
      ^!Info Is Win98
      ^!Goto VersionFound

      ; ^!IfSame "" "" Next else Look4XPSP1
      ; ^!IfSame "" "" Next else Look4XPSP2

      :Look4XPSP2
      ^!Info "^$StrCopy("^$GetRegValue(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion:BuildLab)$";6;8)$" "xpsp_sp2" Next else Look42K
      ^!IfSame "^$StrCopy("^$GetRegValue(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion:BuildLab)$";6;8)$" "xpsp_sp2" Next else Look42K
      ^!Info Is XP SP2
      ^!Goto VersionFound

      :Look42K
      ^!IfSame "^$GetRegValue(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion:ProductName)$" "Microsoft Windows 2000"
      ^!Info Is w2k
      ^!Goto VersionFound

      :VersionFound


      >I modified my clip to use the last three values below and get this on
      >Windows XP Home SP2:
      >
      >Microsoft Windows XP 5.1 2600 Service Pack 2
      >
      >The clip for the buildlab gives me:
      >
      >2600.xpsp_sp2_rtm.040803-2158
      >
      >I reviewed my notes and found this to distinguish between XP Home and Pro:
      >
      >How to detect and distinguish XP Home Edition and Professonal Edition
      >
      >--------------------------------------------------------------------------------
      >
      >There is a value name
      >HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ProductOptions\ProductSuite.
      >Its data is 'Personal' on XP home while '' on XP professonal.
      >
      >I cannot get the above key read by NoteTab.
      >
      >Here is the revised clip that I sent earlier:
      >
      >;07/24/2002 Larry Hamilton lmh@...
      >;^!Info ^$GetRegValue(HKEY_LOCAL_MACHINE\Software\FundWare\7.16:U)$
      >;Windows 95, 98 and Me:
      >;[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion]
      >;Windows NT, 2000 and XP:
      >;[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion]
      >
      >^!SetDebug ON
      >^!Set
      >%ProductName%=^$GetRegValue(HKEY_LOCAL_MACHINE\software\Microsoft\Windows
      >NT\CurrentVersion:ProductName)$
      >^!Set
      >%CurrentVersion%=^$GetRegValue(HKEY_LOCAL_MACHINE\software\Microsoft\Windows
      >NT\CurrentVersion:CurrentVersion)$
      >;^!Set
      >%CurrentType%=^$GetRegValue(HKEY_LOCAL_MACHINE\software\Microsoft\Windows
      >NT\CurrentVersion:CurrentType)$
      >^!Set
      >%CurrentBuildNumber%=^$GetRegValue(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
      >NT\CurrentVersion:CurrentBuildNumber)$
      >^!Set
      >%CSDVersion%=^$GetRegValue(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
      >NT\CurrentVersion:CSDVersion)$
      >
      >^!Info ^%ProductName% ^%CurrentVersion% ^%CurrentType%
      >^%CurrentBuildNumber% ^%CSDVersion%
      >>
      >> gives me nothing, as I don't have that node in my Windows 2000 registry.
      >>
      >> ^$GetRegValue(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
      >> NT\CurrentVersion:ProductName)$

      Microsoft Windows 2000

      >> ^$GetRegValue(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
      >> NT\CurrentVersion:CurrentVersion)$
      >> ^$GetRegValue(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
      >> NT\CurrentVersion:CurrentBuildNumber)$
      >> ^$GetRegValue(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
      >> NT\CurrentVersion:CSDVersion)$
      >>
      >> gives me the following:-
      >>
      >> Microsoft Windows 2000
      >> 5.0
      >> 2195
      >> Service Pack 4


      Thanks!
      Jody
      ...he that is of a merry heart hath a continual feast...
      http://www.clean-funnies.com
      See ya in the funnies!
      http://www.purewords.org/sojourner
      http://www.sojourner.us/software
      notetab.net, fookes.us


      [Non-text portions of this message have been removed]
    • Show all 17 messages in this topic