<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; CMD/BAT: Создать 2 файла в %TEMP%, привязать .vbs к блокноту]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=11967&amp;type=atom" />
	<updated>2016-09-04T19:09:39Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=11967</id>
		<entry>
			<title type="html"><![CDATA[Re: CMD/BAT: Создать 2 файла в %TEMP%, привязать .vbs к блокноту]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=107316#p107316" />
			<content type="html"><![CDATA[<p><strong>AlexGreen</strong><br />В таком случае это скорее не поможет, т.к. шифровальщики сами запускают скрипт, подставляя интрепретатор, в ряде случаев несистемный. Если хочется вообще не давать возможность запускать скрипты, то проще заблокировать их в реестре и через политики.</p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2016-09-04T19:09:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=107316#p107316</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CMD/BAT: Создать 2 файла в %TEMP%, привязать .vbs к блокноту]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=107311#p107311" />
			<content type="html"><![CDATA[<p><strong>Flasher</strong><br />Смысл в том, что те у кого откроются каркозябра в блокноте позвонят мне. И присланный по почте троян шифровальщик может и не отработать. Так можно обезопасить себя от некоторых модификаций этой хрени.</p>]]></content>
			<author>
				<name><![CDATA[AlexGreen]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34162</uri>
			</author>
			<updated>2016-09-04T18:06:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=107311#p107311</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CMD/BAT: Создать 2 файла в %TEMP%, привязать .vbs к блокноту]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=107301#p107301" />
			<content type="html"><![CDATA[<p><strong>AlexGreen</strong><br />Строка правильная, хотя помимо Open ещё раздел Open2 возможен.<br />А какой смысл привязывать открытие исполняемых файлов к блокноту?<br />Редактирование и так к нему по умолчанию привязано.</p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2016-09-04T00:38:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=107301#p107301</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CMD/BAT: Создать 2 файла в %TEMP%, привязать .vbs к блокноту]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=107299#p107299" />
			<content type="html"><![CDATA[<p><strong>Flasher</strong><br />А если я захочу еще привязать .JS к блокноту,&nbsp; нужно будет дописать примерно это?<br /></p><div class="codebox"><pre><code>reg add HKCR\JSFile\Shell\Open\Command /t REG_EXPAND_SZ /f /ve /d &quot;%%SystemRoot%%\notepad.exe &quot;&quot;%%1&quot;&quot;&quot;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[AlexGreen]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34162</uri>
			</author>
			<updated>2016-09-03T22:21:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=107299#p107299</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CMD/BAT: Создать 2 файла в %TEMP%, привязать .vbs к блокноту]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=107297#p107297" />
			<content type="html"><![CDATA[<p>Из cmd запускаем <strong>reg add /?</strong> и смотрим описание. Если что будет неясно, поясню.</p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2016-09-03T17:55:06Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=107297#p107297</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CMD/BAT: Создать 2 файла в %TEMP%, привязать .vbs к блокноту]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=107296#p107296" />
			<content type="html"><![CDATA[<p>Большое спасибо!<br />А не могли бы вы объяснить переменные которые вы использовали в этой строчке - </p><div class="codebox"><pre><code>reg add HKCR\VBSFile\Shell\Open\Command /t REG_EXPAND_SZ /f /ve /d &quot;%%SystemRoot%%\notepad.exe &quot;&quot;%%1&quot;&quot;&quot;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[AlexGreen]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34162</uri>
			</author>
			<updated>2016-09-03T17:44:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=107296#p107296</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CMD/BAT: Создать 2 файла в %TEMP%, привязать .vbs к блокноту]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=107177#p107177" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>echo&quot;&quot;&gt;%Temp%\Name1.tmp
echo&quot;&quot;&gt;%Temp%\Name2.tmp
reg add HKCR\VBSFile\Shell\Open\Command /t REG_EXPAND_SZ /f /ve /d &quot;%%SystemRoot%%\notepad.exe &quot;&quot;%%1&quot;&quot;&quot;</code></pre></div><p><span style="color: green">Исправил заголовок. Предыдущий никуда не годится.</span></p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2016-08-30T21:39:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=107177#p107177</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[CMD/BAT: Создать 2 файла в %TEMP%, привязать .vbs к блокноту]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=107175#p107175" />
			<content type="html"><![CDATA[<p>Помогите в создать батник.<br />Задача: <br />1. Создать пару файлов в директории %temp%.<br />2. Изменить ассоциацию открытия файлов с расширением .vbs на notepad.exe.</p>]]></content>
			<author>
				<name><![CDATA[AlexGreen]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34162</uri>
			</author>
			<updated>2016-08-30T20:59:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=107175#p107175</id>
		</entry>
</feed>
