<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; VBS: помогите объединить 2 скрипта]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=9403&amp;type=atom" />
	<updated>2014-03-24T06:33:09Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=9403</id>
		<entry>
			<title type="html"><![CDATA[Re: VBS: помогите объединить 2 скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=81163#p81163" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>Попробуйте вместо 1 поставить 0, вдруг запускаемое приложение не проигнорирует?</p></blockquote></div><p>Да, действительно, это сработало!<br />Решение было элементарное.</p><p><strong>omegastripes</strong>, Большущие Вам спасибо!</p>]]></content>
			<author>
				<name><![CDATA[guru431]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31974</uri>
			</author>
			<updated>2014-03-24T06:33:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=81163#p81163</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: помогите объединить 2 скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=81158#p81158" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>max7 пишет:</cite><blockquote><div class="quotebox"><cite>shiz пишет:</cite><blockquote><p>А что обозначает единичка после &quot;runas&quot;?</p></blockquote></div><p><a href="http://www.script-coding.com/WSH/Shell.html#3.26.">http://www.script-coding.com/WSH/Shell.html#3.26.</a></p></blockquote></div><p><strong>guru431</strong>, про единичку по ссылке сказано:<br /></p><div class="quotebox"><blockquote><p>Рекомендуемое состояние окна при выполнении. Запускаемое приложение может проигнорировать этот параметр. Возможные значения:<br />0 - скрытое окно.<br />1 - нормальное окно.</p></blockquote></div><p>Попробуйте вместо 1 поставить 0, вдруг запускаемое приложение не проигнорирует?</p>]]></content>
			<author>
				<name><![CDATA[omegastripes]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29228</uri>
			</author>
			<updated>2014-03-23T21:24:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=81158#p81158</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: помогите объединить 2 скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=81157#p81157" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>shiz пишет:</cite><blockquote><p>А что обозначает единичка после &quot;runas&quot;?</p></blockquote></div><p><a href="http://www.script-coding.com/WSH/Shell.html#3.26.">http://www.script-coding.com/WSH/Shell.html#3.26.</a></p>]]></content>
			<author>
				<name><![CDATA[max7]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=10498</uri>
			</author>
			<updated>2014-03-23T21:15:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=81157#p81157</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: помогите объединить 2 скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=81156#p81156" />
			<content type="html"><![CDATA[<p>Я не знаю. Сейчас проверил, без единицы тоже работает.</p><p>Я плохо разбираюсь в vbs скриптах.<br />Эти нашел в своё время в разных местах в интернете.</p>]]></content>
			<author>
				<name><![CDATA[guru431]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31974</uri>
			</author>
			<updated>2014-03-23T20:48:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=81156#p81156</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: помогите объединить 2 скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=81153#p81153" />
			<content type="html"><![CDATA[<p>А что обозначает единичка после &quot;runas&quot;?</p>]]></content>
			<author>
				<name><![CDATA[shiz]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26249</uri>
			</author>
			<updated>2014-03-23T20:24:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=81153#p81153</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[VBS: помогите объединить 2 скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=81151#p81151" />
			<content type="html"><![CDATA[<p>Добрый день!</p><p>Есть 2 маленьких, но очень нужных скрипта. <br />Первый используется для скрытого запуска батников:<br /></p><div class="codebox"><pre><code>createobject(&quot;wscript.shell&quot;).run wscript.arguments(0),0</code></pre></div><p>Второй позволяет повысить привилегии UAC для батника:<br /></p><div class="codebox"><pre><code>createobject(&quot;shell.application&quot;).shellExecute wscript.arguments(0),str,&quot;&quot;,&quot;runas&quot;,1</code></pre></div><p>Для обоих скриптов адрес батника передается аргументом.<br />Помогите, пожалуйста, объединить эти 2 скрипта в один. Желательно, чтобы это было также лаконично.<br />Заранее спасибо!</p>]]></content>
			<author>
				<name><![CDATA[guru431]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31974</uri>
			</author>
			<updated>2014-03-23T19:11:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=81151#p81151</id>
		</entry>
</feed>
