<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; VBS: Помощь по множественной замене строчек в файле]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=11290&amp;type=atom" />
	<updated>2016-02-05T18:11:16Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=11290</id>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Помощь по множественной замене строчек в файле]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=100880#p100880" />
			<content type="html"><![CDATA[<p><strong>zuwiepro</strong><br />Так и надо было писать, что речь не про исправленный вариант, а про исходный. Когда файл открывается на запись, все данные из него удаляются:<br /></p><div class="codebox"><pre><code>Set objFile = objFSO.OpenTextFile(&quot;csgo_english.txt&quot;, ForWriting, true, -1)</code></pre></div><p>В моём же случае производится запись данных.</p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2016-02-05T18:11:16Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=100880#p100880</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Помощь по множественной замене строчек в файле]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=100878#p100878" />
			<content type="html"><![CDATA[<p><strong>Flasher</strong><br />К сожалению не имею доступа к ПК в данный момент. Завтра могу отправить. Вас это устроит?</p>]]></content>
			<author>
				<name><![CDATA[zuwiepro]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33660</uri>
			</author>
			<updated>2016-02-05T18:06:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=100878#p100878</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Помощь по множественной замене строчек в файле]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=100877#p100877" />
			<content type="html"><![CDATA[<p><strong>zuwiepro</strong><br />Приложите конкретный файл, с которым так происходит.</p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2016-02-05T18:04:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=100877#p100877</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Помощь по множественной замене строчек в файле]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=100876#p100876" />
			<content type="html"><![CDATA[<p><strong>Flasher</strong><br />Иногда бывает, что просто удаляются все строки в файле</p>]]></content>
			<author>
				<name><![CDATA[zuwiepro]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33660</uri>
			</author>
			<updated>2016-02-05T18:02:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=100876#p100876</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Помощь по множественной замене строчек в файле]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=100875#p100875" />
			<content type="html"><![CDATA[<p><strong>zuwiepro</strong><br />Не понял вопроса. Что значит &quot;к чему&quot;?</p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2016-02-05T18:00:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=100875#p100875</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Помощь по множественной замене строчек в файле]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=100874#p100874" />
			<content type="html"><![CDATA[<p><strong>Flasher</strong><br />Спасибо большое) ещё такой вопрос - к чему может производится удаление всех строчек в файле После запуска данного скрипта?</p>]]></content>
			<author>
				<name><![CDATA[zuwiepro]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33660</uri>
			</author>
			<updated>2016-02-05T17:58:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=100874#p100874</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Помощь по множественной замене строчек в файле]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=100870#p100870" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>Set FSO = CreateObject(&quot;Scripting.FileSystemObject&quot;)
strText = FSO.OpenTextFile(&quot;csgo_english.txt&quot;,,,-1).ReadAll
&#039;SFUI_MainMenu_PlayButton&#039;csgo_english
strText = Replace(strText,&quot;PLAY&quot;, &quot;&lt;font color=&#039;#800080&#039;&gt;PLAY&lt;/font&gt;&quot;)
&#039;SFUI_MainMenu_Inventory&#039;csgo_english
strText = Replace(strText,&quot;INVENTORY&quot;, &quot;&lt;font color=&#039;#9acd32&#039;&gt;INVENTORY&lt;/font&gt;&quot;)
&#039;SFUI_MainMenu_Watch&#039;csgo_english
strText = Replace(strText,&quot;WATCH&quot;, &quot;&lt;font color=&#039;#9acd32&#039;&gt;WATCH&lt;/font&gt;&quot;)
&#039;SFUI_MainMenu_My_Awards&#039;csgo_english
strText = Replace(strText,&quot;AWARDS&quot;, &quot;&lt;font color=&#039;#9acd32&#039;&gt;AWARDS&lt;/font&gt;&quot;)
&#039;SFUI_MainMenu_HelpButton&#039;csgo_english
strText = Replace(strText,&quot;OPTIONS&quot;, &quot;&lt;font color=&#039;#9acd32&#039;&gt;OPTIONS&lt;/font&gt;&quot;)
&#039;SFUI_MainMenu_StatsButton&#039;csgo_english
strText = Replace(strText,&quot;STATS&quot;, &quot;&lt;font color=&#039;#9ACD32&#039;&gt;STATS&lt;/font&gt;&quot;)
&#039;SFUI_MainMenu_DownloadButton&#039;csgo_english
strText = Replace(strText,&quot;DOWNLOAD CONTENT&quot;, &quot;&lt;font color=&#039;#B22222&#039;&gt;DOWNLOAD CONTENT&lt;/font&gt;&quot;)
&#039;SFUI_MainMenu_SplitscreenWithBots&#039;csgo_english
strText = Replace(strText,&quot;SPLITSCREEN WITH BOTS&quot;, &quot;&lt;font color=&#039;#B22222&#039;&gt;SPLITSCREEN WITH BOTS&lt;/font&gt;&quot;)
&#039;SFUI_MainMenu_QuitGameButton&#039;csgo_english
strText = Replace(strText,&quot;EXIT GAME&quot;, &quot;&lt;font color=&#039;#B22222&#039;&gt;EXIT GAME&lt;/font&gt;&quot;)
FSO.OpenTextFile(&quot;csgo_english.txt&quot;, 2, True, -1).Write strText
MsgBox &quot;Готово! Цветные шрифты установлены!&quot;, 0, &quot;Спасибо за установку :*&quot;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2016-02-05T17:49:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=100870#p100870</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[VBS: Помощь по множественной замене строчек в файле]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=100868#p100868" />
			<content type="html"><![CDATA[<p><span style="color: #8B0000"><strong><em>Приветствую!</em></strong></span> Появился такой вопрос: как запустить весь скрипт? он находится в папке с файлом если что <img src="//forum.script-coding.com/img/smilies/big_smile.png" width="15" height="15" /><br /><strong>( Исправьте ошибки )</strong></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><p><span style="color: #FF0000">Set objFile = objFSO.OpenTextFile(&quot;csgo_english.txt&quot;, ForReading, false, -1)</span></p><p><span style="color: #00CD00">&#039;SFUI_MainMenu_PlayButton&#039;csgo_english</span><br /><span style="color: #5D478B">strText = Replace(strText,&quot;PLAY&quot;, &quot;&lt;font color=&#039;#800080&#039;&gt;PLAY&lt;/font&gt;&quot;)</span><br /><span style="color: #00CD00">&#039;SFUI_MainMenu_Inventory&#039;csgo_english</span><br /><span style="color: #5D478B">strText = Replace(strText,&quot;INVENTORY&quot;, &quot;&lt;font color=&#039;#9acd32&#039;&gt;INVENTORY&lt;/font&gt;&quot;)</span><br /><span style="color: #00CD00">&#039;SFUI_MainMenu_Watch&#039;csgo_english</span><br /><span style="color: #5D478B">strText = Replace(strText,&quot;WATCH&quot;, &quot;&lt;font color=&#039;#9acd32&#039;&gt;WATCH&lt;/font&gt;&quot;)</span><br /><span style="color: #00CD00">&#039;SFUI_MainMenu_My_Awards&#039;csgo_english</span><br /><span style="color: #5D478B">strText = Replace(strText,&quot;AWARDS&quot;, &quot;&lt;font color=&#039;#9acd32&#039;&gt;AWARDS&lt;/font&gt;&quot;)</span><br /><span style="color: #00CD00">&#039;SFUI_MainMenu_HelpButton&#039;csgo_english</span><br /><span style="color: #5D478B">strText = Replace(strText,&quot;OPTIONS&quot;, &quot;&lt;font color=&#039;#9acd32&#039;&gt;OPTIONS&lt;/font&gt;&quot;)</span><br /><span style="color: #00CD00">&#039;SFUI_MainMenu_StatsButton&#039;csgo_english</span><br /><span style="color: #5D478B">strText = Replace(strText,&quot;STATS&quot;, &quot;&lt;font color=&#039;#9ACD32&#039;&gt;STATS&lt;/font&gt;&quot;)</span><br /><span style="color: #00CD00">&#039;SFUI_MainMenu_DownloadButton&#039;csgo_english</span><br /><span style="color: #5D478B">strText = Replace(strText,&quot;DOWNLOAD CONTENT&quot;, &quot;&lt;font color=&#039;#B22222&#039;&gt;DOWNLOAD CONTENT&lt;/font&gt;&quot;)</span><br /><span style="color: #00CD00">&#039;SFUI_MainMenu_SplitscreenWithBots&#039;csgo_english</span><br /><span style="color: #5D478B">strText = Replace(strText,&quot;SPLITSCREEN WITH BOTS&quot;, &quot;&lt;font color=&#039;#B22222&#039;&gt;SPLITSCREEN WITH BOTS&lt;/font&gt;&quot;)</span><br /><span style="color: #00CD00">&#039;SFUI_MainMenu_QuitGameButton&#039;csgo_english</span><br /><span style="color: #5D478B">strText = Replace(strText,&quot;EXIT GAME&quot;, &quot;&lt;font color=&#039;#B22222&#039;&gt;EXIT GAME&lt;/font&gt;&quot;)</span><br /><span style="color: #FF0000">Set objFile = objFSO.OpenTextFile(&quot;csgo_english.txt&quot;, ForWriting, true, -1)</span></p><p><span style="color: #008B8B">MsgBox &quot;Готово! Цветные шрифты установлены!&quot;, 0, &quot;Спасибо за установку :*&quot;</span></p></div></div>]]></content>
			<author>
				<name><![CDATA[zuwiepro]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33660</uri>
			</author>
			<updated>2016-02-05T17:10:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=100868#p100868</id>
		</entry>
</feed>
