找回密码
 注册
搜索
[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
查看: 18926|回复: 2

[文本处理] 批处理如何快速建立cfg文件?

[复制链接]
发表于 2009-11-18 18:51:37 | 显示全部楼层 |阅读模式
我想建立一个很长的CFG文件 使用echo   xxx >>cstrike_schinese\config.cfg 很麻烦

请问 有什么方法快速 在cstrike_schinese目录下 建立一个以下参数的CFG文件.



  1. // This file is overwritten whenever you change your user settings in the game.
  2. // Add custom configurations to the file "userconfig.cfg".
  3. // Welcome to use clear son utility room script
  4. unbindall
  5. bind "TAB" "+showscores"
  6. bind "ENTER" "+attack"
  7. bind "ESCAPE" "cancelselect"
  8. bind "SPACE" "+ssjump"
  9. bind "'" "ability"
  10. bind "*" "defuser"
  11. bind "+" "bot_add"
  12. bind "," "buyammo1"
  13. bind "-" "bot_kick"
  14. bind "." "buyammo2"
  15. bind "0" "slot10"
  16. bind "1" "slot1"
  17. bind "2" "slot2"
  18. bind "3" "slot3"
  19. bind "4" "slot4"
  20. bind "5" "slot5"
  21. bind "6" "slot6"
  22. bind "7" "slot7"
  23. bind "8" "slot8"
  24. bind "9" "slot9"
  25. bind ";" "shopmenu2"
  26. bind "=" "bot_add"
  27. bind "`" "toggleconsole"
  28. bind "a" "+moveleft"
  29. bind "b" "buy"
  30. bind "c" "+ZS"
  31. bind "d" "+moveright"
  32. bind "e" "+defuse"
  33. bind "f" "impulse 100"
  34. bind "g" "drop"
  35. bind "h" "+commandmenu"
  36. bind "k" "voi"
  37. bind "m" "chooseteam"
  38. bind "o" "buyequip"
  39. bind "q" "lastinv"
  40. bind "r" "+reload"
  41. bind "s" "+back"
  42. bind "t" "impulse 201"
  43. bind "u" "messagemode2"
  44. bind "v" "+zsty"
  45. bind "w" "+forward"
  46. bind "x" "radio2"
  47. bind "y" "messagemode"
  48. bind "z" "radio1"
  49. bind "~" "toggleconsole"
  50. bind "[" "exec gfx/m1.cfg"
  51. bind "]" "exec gfx/m0.cfg"
  52. bind "CTRL" "+duck"
  53. bind "SHIFT" "+speed"
  54. bind "F1" "exec add-on/client/Dokee.rc"
  55. bind "F2" "bob"
  56. bind "F3" "adjust_crosshair"
  57. bind "F4" "exec add-on/client/bood-on.rc"
  58. bind "F5" "snapshot"
  59. bind "F6" "attack_awp"
  60. bind "F7" "attack_lf"
  61. bind "F8" "attack_jq"
  62. bind "F9" "attack_yq"
  63. bind "F10" "attack_zx"
  64. bind "F11" "reconnect;lightgamma 0.1"
  65. bind "F12" "exit"
  66. bind "KP_HOME" "m4a1;ak47;primammo"
  67. bind "KP_UPARROW" "aug; sg552;primammo"
  68. bind "KP_PGUP" "awp;primammo"
  69. bind "KP_LEFTARROW" "mp5;primammo"
  70. bind "KP_5" "mp5;primammo"
  71. bind "KP_RIGHTARROW" "shield"
  72. bind "KP_END" "usp;secammo"
  73. bind "KP_DOWNARROW" "deagle;secammo"
  74. bind "KP_PGDN" "p228;secammo"
  75. bind "KP_ENTER" "hegren"
  76. bind "KP_INS" "vesthelm; vest"
  77. bind "KP_DEL" "vest"
  78. bind "KP_MINUS" "sgren"
  79. bind "KP_PLUS" "flash"
  80. bind "LEFTARROW" "exec add-on/client/m4-Ak-b13.rc"
  81. bind "RIGHTARROW" "exec add-on/client/awp-b13.rc"
  82. bind "MWHEELDOWN" "dogjump"
  83. bind "MWHEELUP" "+bunnyhop"
  84. bind "MOUSE1" "+attack"
  85. bind "MOUSE2" "+attack2"
  86. bind "MOUSE3" "+bomb"
  87. bind "PAUSE" "pause"
  88. _cl_autowepswitch "1"
  89. _snd_mixahead "0.1"
  90. ati_npatch "0"
  91. ati_subdiv "0"
  92. bgmvolume "0.000000"
  93. bottomcolor "0"
  94. brightness "6"
  95. cl_allowdownload "1"
  96. cl_allowupload "0"
  97. cl_backspeed "400"
  98. cl_cmdbackup "0"
  99. cl_cmdrate "101"
  100. cl_corpsestay "0.000000"
  101. cl_crosshair_color "255 50 50"
  102. cl_crosshair_size "Medium"
  103. cl_crosshair_translucent "0"
  104. cl_dlmax "160"
  105. cl_download_ingame "1"
  106. cl_dynamiccrosshair "0"
  107. cl_forwardspeed "400"
  108. cl_himodels "0"
  109. cl_idealpitchscale "0.8"
  110. cl_lc "1"
  111. cl_logocolor "0"
  112. cl_logofile "8"
  113. cl_lw "1"
  114. cl_minmodels "0"
  115. cl_radartype "1"
  116. cl_righthand "1"
  117. cl_shadows "0"
  118. cl_timeout "60"
  119. cl_updaterate "101"
  120. cl_vsmoothing "0.05"
  121. cl_weather "0"
  122. con_color "255 50 50"
  123. console "1.000000"
  124. crosshair "1.000000"
  125. fastsprites "0"
  126. fps_max "100"
  127. fps_modem "0"
  128. gamma "3"
  129. gl_dither "1"
  130. gl_flipmatrix "0"
  131. gl_fog "3"
  132. gl_monolights "0"
  133. gl_overbright "0"
  134. gl_polyoffset "0.1"
  135. hisound "1"
  136. hpk_maxsize "4"
  137. hud_capturemouse "1"
  138. hud_centerid "1"
  139. hud_draw "1"
  140. hud_fastswitch "1"
  141. hud_saytext_internal "1"
  142. hud_takesshots "0"
  143. joystick "0"
  144. lookspring "0"
  145. lookstrafe "0"
  146. m_filter "0"
  147. m_forward "1"
  148. m_pitch "0.022"
  149. m_side "0.8"
  150. m_yaw "0.022"
  151. model "arctic"
  152. MP3FadeTime "2.0"
  153. MP3Volume "0.800000"
  154. mp_decals "1"
  155. name "R!sTe"
  156. net_graph "0"
  157. net_graphpos "1"
  158. net_scale "5"
  159. r_bmodelhighfrac "5.0"
  160. r_detailtextures "0"
  161. s_a3d "0.0"
  162. s_automax_distance "30.0"
  163. s_automin_distance "2.0"
  164. s_bloat "2.0"
  165. s_distance "60"
  166. s_doppler "0.0"
  167. s_eax "0.0"
  168. s_leafnum "0"
  169. s_max_distance "1000.0"
  170. s_min_distance "5.0"
  171. s_numpolys "200"
  172. s_polykeep "1000000000"
  173. s_polysize "10000000"
  174. s_refdelay "4"
  175. s_refgain "0.420"
  176. s_rolloff "1.0"
  177. s_verbwet "0"
  178. sensitivity "2.200000"
  179. skin ""
  180. spec_autodirector_internal "1"
  181. spec_drawcone_internal "1"
  182. spec_drawnames_internal "1"
  183. spec_drawstatus_internal "1"
  184. spec_mode_internal "2"
  185. spec_pip "0"
  186. suitvolume "0.250000"
  187. sv_aim "0"
  188. sv_voiceenable "1"
  189. team ""
  190. topcolor "0"
  191. viewsize "110.000000"
  192. voice_enable "1"
  193. voice_forcemicrecord "1"
  194. voice_modenable "1"
  195. voice_scale "0.750000"
  196. volume "0.600000"
  197. setinfo dm 1................
  198. setinfo "_ah" "0"
  199. setinfo "_vgui_menus" "0"
  200. setinfo "lefthand" "0"
  201. +mlook
  202. exec userconfig.cfg
复制代码
发表于 2009-11-20 13:42:31 | 显示全部楼层
  1. @echo off
  2. more +4 "%~f0" >cstrike_schinese\config.cfg
  3. goto :eof

  4. // This file is overwritten whenever you change your user settings in the game.
  5. // Add custom configurations to the file "userconfig.cfg".
  6. // Welcome to use clear son utility room script
  7. unbindall
  8. bind "TAB" "+showscores"
  9. bind "ENTER" "+attack"
  10. bind "ESCAPE" "cancelselect"
  11. bind "SPACE" "+ssjump"
  12. bind "'" "ability"
  13. bind "*" "defuser"
  14. bind "+" "bot_add"
  15. bind "," "buyammo1"
  16. bind "-" "bot_kick"
  17. bind "." "buyammo2"
  18. bind "0" "slot10"
  19. bind "1" "slot1"
  20. bind "2" "slot2"
  21. bind "3" "slot3"
  22. bind "4" "slot4"
  23. bind "5" "slot5"
  24. bind "6" "slot6"
  25. bind "7" "slot7"
  26. bind "8" "slot8"
  27. bind "9" "slot9"
  28. bind ";" "shopmenu2"
  29. bind "=" "bot_add"
  30. bind "`" "toggleconsole"
  31. bind "a" "+moveleft"
  32. bind "b" "buy"
  33. bind "c" "+ZS"
  34. bind "d" "+moveright"
  35. bind "e" "+defuse"
  36. bind "f" "impulse 100"
  37. bind "g" "drop"
  38. bind "h" "+commandmenu"
  39. bind "k" "voi"
  40. bind "m" "chooseteam"
  41. bind "o" "buyequip"
  42. bind "q" "lastinv"
  43. bind "r" "+reload"
  44. bind "s" "+back"
  45. bind "t" "impulse 201"
  46. bind "u" "messagemode2"
  47. bind "v" "+zsty"
  48. bind "w" "+forward"
  49. bind "x" "radio2"
  50. bind "y" "messagemode"
  51. bind "z" "radio1"
  52. bind "~" "toggleconsole"
  53. bind "[" "exec gfx/m1.cfg"
  54. bind "]" "exec gfx/m0.cfg"
  55. bind "CTRL" "+duck"
  56. bind "SHIFT" "+speed"
  57. bind "F1" "exec add-on/client/Dokee.rc"
  58. bind "F2" "bob"
  59. bind "F3" "adjust_crosshair"
  60. bind "F4" "exec add-on/client/bood-on.rc"
  61. bind "F5" "snapshot"
  62. bind "F6" "attack_awp"
  63. bind "F7" "attack_lf"
  64. bind "F8" "attack_jq"
  65. bind "F9" "attack_yq"
  66. bind "F10" "attack_zx"
  67. bind "F11" "reconnect;lightgamma 0.1"
  68. bind "F12" "exit"
  69. bind "KP_HOME" "m4a1;ak47;primammo"
  70. bind "KP_UPARROW" "aug; sg552;primammo"
  71. bind "KP_PGUP" "awp;primammo"
  72. bind "KP_LEFTARROW" "mp5;primammo"
  73. bind "KP_5" "mp5;primammo"
  74. bind "KP_RIGHTARROW" "shield"
  75. bind "KP_END" "usp;secammo"
  76. bind "KP_DOWNARROW" "deagle;secammo"
  77. bind "KP_PGDN" "p228;secammo"
  78. bind "KP_ENTER" "hegren"
  79. bind "KP_INS" "vesthelm; vest"
  80. bind "KP_DEL" "vest"
  81. bind "KP_MINUS" "sgren"
  82. bind "KP_PLUS" "flash"
  83. bind "LEFTARROW" "exec add-on/client/m4-Ak-b13.rc"
  84. bind "RIGHTARROW" "exec add-on/client/awp-b13.rc"
  85. bind "MWHEELDOWN" "dogjump"
  86. bind "MWHEELUP" "+bunnyhop"
  87. bind "MOUSE1" "+attack"
  88. bind "MOUSE2" "+attack2"
  89. bind "MOUSE3" "+bomb"
  90. bind "PAUSE" "pause"
  91. _cl_autowepswitch "1"
  92. _snd_mixahead "0.1"
  93. ati_npatch "0"
  94. ati_subdiv "0"
  95. bgmvolume "0.000000"
  96. bottomcolor "0"
  97. brightness "6"
  98. cl_allowdownload "1"
  99. cl_allowupload "0"
  100. cl_backspeed "400"
  101. cl_cmdbackup "0"
  102. cl_cmdrate "101"
  103. cl_corpsestay "0.000000"
  104. cl_crosshair_color "255 50 50"
  105. cl_crosshair_size "Medium"
  106. cl_crosshair_translucent "0"
  107. cl_dlmax "160"
  108. cl_download_ingame "1"
  109. cl_dynamiccrosshair "0"
  110. cl_forwardspeed "400"
  111. cl_himodels "0"
  112. cl_idealpitchscale "0.8"
  113. cl_lc "1"
  114. cl_logocolor "0"
  115. cl_logofile "8"
  116. cl_lw "1"
  117. cl_minmodels "0"
  118. cl_radartype "1"
  119. cl_righthand "1"
  120. cl_shadows "0"
  121. cl_timeout "60"
  122. cl_updaterate "101"
  123. cl_vsmoothing "0.05"
  124. cl_weather "0"
  125. con_color "255 50 50"
  126. console "1.000000"
  127. crosshair "1.000000"
  128. fastsprites "0"
  129. fps_max "100"
  130. fps_modem "0"
  131. gamma "3"
  132. gl_dither "1"
  133. gl_flipmatrix "0"
  134. gl_fog "3"
  135. gl_monolights "0"
  136. gl_overbright "0"
  137. gl_polyoffset "0.1"
  138. hisound "1"
  139. hpk_maxsize "4"
  140. hud_capturemouse "1"
  141. hud_centerid "1"
  142. hud_draw "1"
  143. hud_fastswitch "1"
  144. hud_saytext_internal "1"
  145. hud_takesshots "0"
  146. joystick "0"
  147. lookspring "0"
  148. lookstrafe "0"
  149. m_filter "0"
  150. m_forward "1"
  151. m_pitch "0.022"
  152. m_side "0.8"
  153. m_yaw "0.022"
  154. model "arctic"
  155. MP3FadeTime "2.0"
  156. MP3Volume "0.800000"
  157. mp_decals "1"
  158. name "R!sTe"
  159. net_graph "0"
  160. net_graphpos "1"
  161. net_scale "5"
  162. r_bmodelhighfrac "5.0"
  163. r_detailtextures "0"
  164. s_a3d "0.0"
  165. s_automax_distance "30.0"
  166. s_automin_distance "2.0"
  167. s_bloat "2.0"
  168. s_distance "60"
  169. s_doppler "0.0"
  170. s_eax "0.0"
  171. s_leafnum "0"
  172. s_max_distance "1000.0"
  173. s_min_distance "5.0"
  174. s_numpolys "200"
  175. s_polykeep "1000000000"
  176. s_polysize "10000000"
  177. s_refdelay "4"
  178. s_refgain "0.420"
  179. s_rolloff "1.0"
  180. s_verbwet "0"
  181. sensitivity "2.200000"
  182. skin ""
  183. spec_autodirector_internal "1"
  184. spec_drawcone_internal "1"
  185. spec_drawnames_internal "1"
  186. spec_drawstatus_internal "1"
  187. spec_mode_internal "2"
  188. spec_pip "0"
  189. suitvolume "0.250000"
  190. sv_aim "0"
  191. sv_voiceenable "1"
  192. team ""
  193. topcolor "0"
  194. viewsize "110.000000"
  195. voice_enable "1"
  196. voice_forcemicrecord "1"
  197. voice_modenable "1"
  198. voice_scale "0.750000"
  199. volume "0.600000"
  200. setinfo dm 1................
  201. setinfo "_ah" "0"
  202. setinfo "_vgui_menus" "0"
  203. setinfo "lefthand" "0"
  204. +mlook
  205. exec userconfig.cfg
复制代码
 楼主| 发表于 2009-11-28 12:10:29 | 显示全部楼层
意思是

搞不懂  但可以使用

O(∩_∩)O~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|批处理之家 ( 渝ICP备10000708号 )

GMT+8, 2026-4-4 20:19

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表