<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; CMD/BAT: патчер бинарных файлов]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=2868&amp;type=atom" />
	<updated>2010-11-14T14:44:21Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=2868</id>
		<entry>
			<title type="html"><![CDATA[Re: CMD/BAT: патчер бинарных файлов]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=41665#p41665" />
			<content type="html"><![CDATA[<p>а) Как работает скрипт, написано в нем самом, в разделе :HELP. Скрипт специфичный. Вероятно те, кому он действительно нужен, без труда в нем разберутся.</p><p>б) Если же вам нужен просто патчер, то рекомендую воспользоваться <a href="http://ru.wikipedia.org/wiki/Xdelta">xdelta</a>.<br />Сделать файл различий diff между ver1.txt и ver2.txt<br /></p><div class="codebox"><pre><code>xdelta3.0t.x86-32.exe -f -e -s ver1.txt ver2.txt diff</code></pre></div><p>После этого можно из ver1.txt и diff всегда сделать ver2.txt:<br /></p><div class="codebox"><pre><code>xdelta3.0t.x86-32.exe -f -d -s ver1.txt diff ver2.txt</code></pre></div><p>Например, экономней скачать образ CD.iso и diff для превращения его в DVD.iso (CD.iso + доп. материалы), чем качать и то и другое.</p><p>upd<br />в) Ах, да, может быть я все усложняю, и вам просто нужно поправить в файле пару байт по известному смещению. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /> Тогда вам нужен <a href="http://www.xakep.ru/magazine/xa/007/075/1.asp">шестнадцатиричный редактор</a>.</p>]]></content>
			<author>
				<name><![CDATA[jite]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=25851</uri>
			</author>
			<updated>2010-11-14T14:44:21Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=41665#p41665</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CMD/BAT: патчер бинарных файлов]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=41656#p41656" />
			<content type="html"><![CDATA[<p>Может кто-нибудь обьяснить как пользоваться этим скриптом??? создал pat4.bat и&nbsp; pat4.reg, скопировал батник в C:\windows внёс изменения в регистр, а дальше что?? открываю двоичный файл и всё так же...</p>]]></content>
			<author>
				<name><![CDATA[rapbit89]]></name>
			</author>
			<updated>2010-11-14T10:15:25Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=41656#p41656</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CMD/BAT: патчер бинарных файлов]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=21353#p21353" />
			<content type="html"><![CDATA[<p><span class="bbu">UpDate</span><br />Ну вроде закончил. <a href="http://forum.script-coding.com/viewtopic.php?pid=21350#p21350">Pat4_v3</a><br />Подчистил лишние переходы, упаковал всё в удобную инсталляшку <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[kiber_punk]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=23894</uri>
			</author>
			<updated>2009-04-05T09:08:09Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=21353#p21353</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CMD/BAT: патчер бинарных файлов]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=20825#p20825" />
			<content type="html"><![CDATA[<p>Бета-Тест <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /> Чувствую что ещё что-то можно оптимизировать.</p>]]></content>
			<author>
				<name><![CDATA[kiber_punk]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=23894</uri>
			</author>
			<updated>2009-03-19T11:27:20Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=20825#p20825</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CMD/BAT: патчер бинарных файлов]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=20821#p20821" />
			<content type="html"><![CDATA[<p>Что в <a href="http://forum.script-coding.com/viewtopic.php?id=2885">коллекцию</a> то последнюю версию не отправил?</p>]]></content>
			<author>
				<name><![CDATA[-red-]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=11960</uri>
			</author>
			<updated>2009-03-19T07:51:35Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=20821#p20821</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CMD/BAT: патчер бинарных файлов]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=20426#p20426" />
			<content type="html"><![CDATA[<p>Спасибо <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /><br />Очень интересные трюки на ресурсе по ссылке.<br />Теперь скрипт работает заметно быстрее.<br />__<br /><span class="bbu">UpDate</span><br /></p><div class="codebox"><pre><code>:: patcher v 2.1 by kiber_punk 
@echo off
CHCP 1251&gt;nul
set a=
set data=
set ext=
if &quot;%~1&quot;==&quot;/?&quot; (GOTO HELP)
if &quot;%~1&quot;==&quot;&quot; (GOTO file)

set newname=%~s1
::ИМЕЕМ КОРОТКОЕ ИМЯ
:new
if &quot;%2&quot;==&quot;&quot; (GOTO address)
if &quot;%3&quot;==&quot;&quot; (GOTO byte)
if not &quot;%3&quot;==&quot;&quot; (GOTO go)

::ВВОД АДРЕСА
:address
set /p a=Offset address, default - BOF(00h):  
if &quot;%a%&quot;==&quot;&quot; (set a=00)
::ВВОД БАЙТА
:byte
set /p data=Input byte for include, default ^&lt;00^&gt;:  
if &quot;%data%&quot;==&quot;&quot; (set data=00)

:go
::переименовать чтобы исключить все возможные ошибки
ren %1 &quot;~tmp.bin&quot;
::задаём короткое имя в формате DOS
call :short &quot;%~dp1~tmp.bin&quot;
CALL :WORK &quot;%newname%&quot; %2 %a% %data% %3 %4 %5 %6 %7 %8 %9
::обратное переименование
ren &quot;%~dp1~tmp.bin&quot; &quot;%~nx1&quot;

::вывод информации
echo ...
echo Filename:    %~nx1
echo Address: %2 %a%
echo Byte:    %data% %3 %4 %5 %6 %7 %8 %9
echo ...
echo Press AnyKey...
pause&gt;nul
exit 

::ИНТЕРАКТИВНОЕ ЗАДАНИЕ ИМЕНИ
:file
set /p file=Enter filename:  
if not exist %file% (Echo File not found!&amp;goto file)
CALL :new %file%
exit /b

::РАБОЧАЯ ЧАСТЬ
:WORK
call :HEX %2
set pat4=%TMP%\patch.dbg
rem =================================
echo e %offset% %3 %4 %5 %6 %7 %8 %9&gt;%pat4%
echo  %3 %4 %5 %6 %7 %8 %9&gt;&gt;%pat4%
echo w&gt;&gt;%pat4%
echo q&gt;&gt;%pat4%
rem =================================
chcp 866&gt;nul
debug %~1 &lt;%pat4%&gt;nul
exit /b
::СПРАВКА
:HELP
    echo Used command line:  pat4 [^&lt;file^&gt; [address [bytes]]] [/?]
    echo ...
    echo ^&lt;file^&gt;    - файл для обработки
    echo ^&lt;address^&gt; - адрес смещения для внедряемых байтов ^(HEX^)
    echo ^&lt;byte^&gt;    - байт^(ы^)  и(или) строки разделенные через пробел.
    echo           строки заключаются в одинарные кавычки.
    echo           Между байтом и строкой пробел необязателен: 04 20&#039;string&#039; 20 
    echo ..
    echo   Пример:
    echo ^&lt;pat4.bat file.exe 00 01 02 3c^&gt; - записывает в начало файла
    echo                             последовательность байтов 01,02,3c
    echo ^&lt;pat4.bat file.lnk 3c 07^&gt;       - записывает байт 07 по адресу 3C&amp;echo ..
exit /b

:short
set newname=%~s1
exit /b

rem ==Преобразование адреса==
:HEX
setlocal enableextensions enabledelayedexpansion
    SET Adr=%1
    set /a plus100 = 0x%Adr% + 0x100
    call :Dec2HEX !plus100! Adr    
endlocal&amp;set offset=%Hexstr%

exit /b 0
:Dec2HEX 
set /a Dec = %1
set HexString=
:Repeat
set /a Index = Dec %% 16 + 1
set /a     Dec  = Dec / 16

for /f &quot;tokens=%Index%&quot; %%h in (&quot;0 1 2 3 4 5 6 7 8 9 A B C D E F&quot;) do (set HexString=%%h%HexString%)
if %Dec% GTR 0 goto :Repeat
set Hexstr=%HexString%</code></pre></div><p>__<br />(ой, забыл раскомментировать вторую строку <img src="//forum.script-coding.com/img/smilies/big_smile.png" width="15" height="15" />)</p>]]></content>
			<author>
				<name><![CDATA[kiber_punk]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=23894</uri>
			</author>
			<updated>2009-03-10T09:02:09Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=20426#p20426</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CMD/BAT: патчер бинарных файлов]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=20423#p20423" />
			<content type="html"><![CDATA[<p>OFF:<br /></p><div class="quotebox"><cite>kiber_punk пишет:</cite><blockquote><p>как ты получаешь через этот код ну например число <strong>3c</strong>? <img src="//forum.script-coding.com/img/smilies/lol.png" width="15" height="15" /></p></blockquote></div><p>Вот я лох то.<br />ЗЫ: Нехочешь перемигиваться - так и написал бы сразу что код не корректен, я ж тебе идею подать хотел и судя по всему подал (:</p>]]></content>
			<author>
				<name><![CDATA[-red-]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=11960</uri>
			</author>
			<updated>2009-03-10T06:39:56Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=20423#p20423</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CMD/BAT: патчер бинарных файлов]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=20329#p20329" />
			<content type="html"><![CDATA[<p><strong>2kiber_punk</strong>: а эту функцию можно использовать для добавления 0x100?<br /></p><div class="codebox"><pre><code>@echo off
setlocal enableextensions enabledelayedexpansion

set /a Decimal = 511
call :DecimalToHex %Decimal% Hex
echo Decimal [%Decimal%] == Hex [%Hex%]

endlocal
exit /b 0

rem ===============================================================
:DecimalToHex DecimalValueIn HexStringOut
rem ===============================================================
    setlocal enableextensions enabledelayedexpansion

    set /a DecimalValue = %1
    set HexString=
    
:Repeat
    set /a Index         = DecimalValue %% 16 + 1
    set /a DecimalValue  = DecimalValue / 16

    for /f &quot;tokens=%Index%&quot; %%h in (&quot;0 1 2 3 4 5 6 7 8 9 A B C D E F&quot;) do set HexString=%%h%HexString%
    
    if %DecimalValue% GTR 0 goto :Repeat
    
    endlocal &amp; set %2=%HexString%
exit /b 0
rem ===============================================================</code></pre></div><p>Наподобие такого (на примере «set /p…» из оригинального скрипта):<br /></p><div class="codebox"><pre><code>@echo off
setlocal enableextensions enabledelayedexpansion

set /p Adress=Enter offset address, default - begin file: 
if &quot;%Adress%&quot;==&quot;&quot; (
    set Adress=100
) else (
    set /a DecimalAdress = 0x!Adress! + 0x100
    call :DecimalToHex !DecimalAdress! Adress
    rem echo Here Adress in hex = !Adress!
)
echo HexAdress [%Adress%]

endlocal
exit /b 0

rem ===============================================================
:DecimalToHex DecimalValueIn HexStringOut
rem ===============================================================
    setlocal enableextensions enabledelayedexpansion

    set /a DecimalValue = %1
    set HexString=
    
:Repeat
    set /a Index         = DecimalValue %% 16 + 1
    set /a DecimalValue  = DecimalValue / 16

    for /f &quot;tokens=%Index%&quot; %%h in (&quot;0 1 2 3 4 5 6 7 8 9 A B C D E F&quot;) do set HexString=%%h%HexString%
    
    if %DecimalValue% GTR 0 goto :Repeat
    
    endlocal &amp; set %2=%HexString%
exit /b 0
rem ===============================================================</code></pre></div><div class="quotebox"><blockquote><p>alexii, извиняюсь, впредь больше такого не повторится</p></blockquote></div><p>Ну, что Вы, это была просто просьба <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" />.</p><p>OFF: сделано на основе <a href="http://www.netikka.net/tsneti/info/tscmd032.htm">TSCMD032 FAQ: How can I convert a decimal number to binary, octal, hexadecimal? Assorted NT/2000/XP/.. CMD.EXE script tricks written by Timo Salmi</a>. Много там, конечно, совершенно лишнего — я многое убрал, но вот использование:<br /></p><div class="codebox"><pre><code>call :LabelName %ArgIn% ArgOut</code></pre></div><p>для вызова функции «:LabelName» и возврат значения «Variable» в вызывающий скрипт через параметры в виде:<br /></p><div class="codebox"><pre><code>endlocal &amp; set %2=%Variable%</code></pre></div><p>я встретил впервые. Самое интересное, что это работает. Как говорится, chapeau!</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2009-03-06T20:27:25Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=20329#p20329</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CMD/BAT: патчер бинарных файлов]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=20327#p20327" />
			<content type="html"><![CDATA[<p><span class="bbu">UpDate</span>.<br />Ввод реального адреса смещения (без необходимости предварительного суммирования с 100h) и костылей в виде временных файлов.<br />Небольшие добавления в справке (инклуд строки).</p><br /><div class="codebox"><pre><code>:: patcher v 2.0.1 by kiber_punk 
@echo off
CHCP 1251&gt;nul
set a=
set data=
set ext=

if &quot;%~1&quot;==&quot;/?&quot; (GOTO HELP)
if &quot;%~1&quot;==&quot;&quot; (GOTO file)

set newname=%~s1

::ИМЕЕМ КОРОТКОЕ ИМЯ
:new
if &quot;%2&quot;==&quot;&quot; (GOTO address)
if &quot;%3&quot;==&quot;&quot; (GOTO byte)
if not &quot;%3&quot;==&quot;&quot; (GOTO go)

::ВВОД АДРЕСА
:address
set /p a=Offset address, default - BOF(00h):  
if &quot;%a%&quot;==&quot;&quot; (set a=00)
::ВВОД БАЙТА
:byte
set /p data=Input byte for include, default ^&lt;00^&gt;:  
if &quot;%data%&quot;==&quot;&quot; (set data=00)

:go
::переименовать чтобы исключить все возможные ошибки
ren %1 &quot;tmp.bin&quot;
::задаём короткое имя в формате DOS
call :short &quot;%~dp1tmp.bin&quot;

CALL :WORK &quot;%newname%&quot; %2 %a% %data% %3 %4 %5 %6 %7 %8 %9

::обратное переименование
ren &quot;%~dp1tmp.bin&quot; &quot;%~nx1&quot;

::вывод информации
echo ...
echo Filename:    %~nx1
echo Address: %2 %a%
echo Byte:    %data% %3 %4 %5 %6 %7 %8 %9
echo ...
echo Press AnyKey...
pause&gt;nul
exit /b

::ИНТЕРАКТИВНОЕ ЗАДАНИЕ ИМЕНИ
:file
set /p file=Enter filename:  
if not exist %file% (Echo File not found&amp;goto file)
CALL :new %file%
exit /b

::РАБОЧАЯ ЧАСТЬ
:WORK
call mshta &quot;javascript:var s=((parseInt(0x100))+(parseInt(0x%2)));function toHex(s){  return (enHex((0xf000 &amp; s) &gt;&gt; 12) + enHex((0x0f00 &amp; s) &gt;&gt;  8) + enHex((0x00f0 &amp; s) &gt;&gt;  4) + enHex((0x000f &amp; s) &gt;&gt;  0)) } ;function enHex(aDigit){  return(&quot;0123456789ABCDEF&quot;.substring(aDigit, aDigit+1))};new ActiveXObject(&#039;Scripting.FileSystemObject&#039;).GetStandardStream(1).Write((&#039;E &#039;)+((toHex(s))));close();&quot; &gt;patch.dbg
echo  %3 %4 %5 %6 %7 %8 %9&gt;&gt;patch.dbg
echo w&gt;&gt;patch.dbg
echo q&gt;&gt;patch.dbg
chcp 866&gt;nul
debug %~1 &lt; patch.dbg &gt;nul
del patch.dbg
exit /b
::СПРАВКА
:HELP
    echo Used command line:  pat4 [^&lt;file^&gt; [address [bytes]]] [/?]
    echo ...
    echo ^&lt;file^&gt;    - файл для обработки
    echo ^&lt;address^&gt; - адрес смещения для ввода байтов ^(HEX^)
    echo ^&lt;byte^&gt;    - байт^(ы^)  и(или) строки разделенные через пробел.
    echo           Между байтом и строкой пробел необязателен: 04 20&#039;string&#039; 20 
    echo ..
    echo   Пример:
    echo ^&lt;pat4.bat file.exe 00 01 02 3c^&gt; - записывает в начало файла
    echo                             последовательность байтов 01,02,3c
    echo ^&lt;pat4.bat file.lnk 3c 07^&gt;       - записывает байт 07 по адресу 3C&amp;echo ..
exit /b

:short
set newname=%~s1</code></pre></div><p>Код HEX-преобразования заимствован <a href="http://www.odessa.net/docs/javascr/DOSFILES/COLORS/HEX.HTM">отсюда</a></p>]]></content>
			<author>
				<name><![CDATA[kiber_punk]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=23894</uri>
			</author>
			<updated>2009-03-06T17:37:36Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=20327#p20327</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CMD/BAT: патчер бинарных файлов]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=20322#p20322" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>-red- пишет:</cite><blockquote><p>Сразу видно что примерчик ты не запускал <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /><br />ЗЫ: Костыли - это прибавлять 0х100 к требуему смещению <img src="//forum.script-coding.com/img/smilies/wink.png" width="15" height="15" /></p></blockquote></div><p>Мда..Клиника? (:<br />Примерчик то твой я пробывал, и немного запутался.. вот скажи, как ты получаешь через этот код ну например число <strong>3c</strong>? <img src="//forum.script-coding.com/img/smilies/lol.png" width="15" height="15" /><br />OFF: да и, давай не будем играть в перелядки-подмигивалки <img src="//forum.script-coding.com/img/smilies/wink.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[kiber_punk]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=23894</uri>
			</author>
			<updated>2009-03-06T14:57:49Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=20322#p20322</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CMD/BAT: патчер бинарных файлов]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=20320#p20320" />
			<content type="html"><![CDATA[<p><strong>alexii</strong>, извиняюсь, впреть больше такого не повторится <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[kiber_punk]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=23894</uri>
			</author>
			<updated>2009-03-06T14:20:05Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=20320#p20320</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CMD/BAT: патчер бинарных файлов]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=20287#p20287" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>kiber_punk пишет:</cite><blockquote><p>И? Это тоже самое что и <strong>SET /a</strong>. Функция&nbsp; <strong>parseInt</strong> возвращает число в десятичном формате, а нужен hex.</p></blockquote></div><p>Сразу видно что примерчик ты не запускал <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /><br />ЗЫ: Костыли - это прибавлять 0х100 к требуему смещению <img src="//forum.script-coding.com/img/smilies/wink.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[-red-]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=11960</uri>
			</author>
			<updated>2009-03-06T05:27:47Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=20287#p20287</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CMD/BAT: патчер бинарных файлов]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=20285#p20285" />
			<content type="html"><![CDATA[<p>OFF: <strong>2kiber_punk</strong>: прошу, при помещении чего-либо в Коллекцию, делать из ссылку из обсуждения на неё, например, <a href="http://forum.script-coding.com/profile.php?id=23894">так</a>. Это облегчает жизнь.</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2009-03-06T03:29:13Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=20285#p20285</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CMD/BAT: патчер бинарных файлов]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=20284#p20284" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>-red- пишет:</cite><blockquote><p>А если прикрутить примерчик:<br /></p><div class="codebox"><pre><code>echo WScript.Quit( (parseInt(%1,16)+0x100).toString(16) ) &gt; test.js
cscript //B //Nologo test.js
echo %ERRORLEVEL%
del test.js</code></pre></div><p><strong>kiber_punk</strong>, по крайней мере это не противоречит твоей подписи <img src="//forum.script-coding.com/img/smilies/wink.png" width="15" height="15" /></p></blockquote></div><p>И? Это тоже самое что и <strong>SET /a</strong>. Функция&nbsp; <strong>parseInt</strong> возвращает число в десятичном формате, а нужен hex.</p><p>Можно проделать трюк с vbs-функцией <strong>hex()</strong>, но это всё костыли.</p>]]></content>
			<author>
				<name><![CDATA[kiber_punk]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=23894</uri>
			</author>
			<updated>2009-03-06T00:04:50Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=20284#p20284</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CMD/BAT: патчер бинарных файлов]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=20264#p20264" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>kiber_punk пишет:</cite><blockquote><p>Пример с ярлыком тудаже или не стоит?</p></blockquote></div><p>Пример с ярлыком там точно не помешает, спасибо.</p>]]></content>
			<author>
				<name><![CDATA[The gray Cardinal]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=2</uri>
			</author>
			<updated>2009-03-05T09:34:44Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=20264#p20264</id>
		</entry>
</feed>
