<?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=11453&amp;type=atom" />
	<updated>2017-05-25T06:04:47Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=11453</id>
		<entry>
			<title type="html"><![CDATA[Re: VBS: не запускается команда]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=116013#p116013" />
			<content type="html"><![CDATA[<p>Опять перестал нормально работать скрипт в Win7x64.&nbsp; Разобрался. Пароль неверный подкидывал.</p>]]></content>
			<author>
				<name><![CDATA[Кир]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=2834</uri>
			</author>
			<updated>2017-05-25T06:04:47Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=116013#p116013</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: не запускается команда]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=109459#p109459" />
			<content type="html"><![CDATA[<p>Переписал имя раздела С: в английской раскладке. Работает вроде.</p>]]></content>
			<author>
				<name><![CDATA[Кир]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=2834</uri>
			</author>
			<updated>2016-11-28T06:37:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=109459#p109459</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: не запускается команда]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=109355#p109355" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>With CreateObject(&quot;WScript.Shell&quot;)
  .Run &quot;rasdial RK chan i_1623&quot;,, True
  .Run &quot;C:\NB\tst10.exe /r:C:\NB\log.txt /o&quot;,, True
  .Run &quot;rasdial RK /d&quot;
End With</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2016-11-25T12:51:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=109355#p109355</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: не запускается команда]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=109351#p109351" />
			<content type="html"><![CDATA[<p>Похожий скрипт не выполняется в Виндовс 2000. Сообщает &quot;Файл не найден Стрпока 3 символ 1&quot;:</p><div class="codebox"><pre><code>Set WshShell=WScript.CreateObject(&quot;WScript.Shell&quot;)
Sub Program(Oops, Style, Wait)
X=WshShell.Run(Oops, Style, Wait)
End Sub

Call Program(&quot;rasdial RK chan i_1623&quot;, True, True)
Wscript.Sleep 5000

&#039;запускаем вкл/выкл аутентификации
Call Program(&quot;С:\NB\tst10.exe /r:C:\NB\log.txt /o&quot;, True, True)
Wscript.Sleep 10000

&#039;разъединяем модемное соединение
Call Program(&quot;rasdial RK /d&quot;, True, True)
</code></pre></div><p>Что исправить в скрипте для запуска?</p>]]></content>
			<author>
				<name><![CDATA[Кир]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=2834</uri>
			</author>
			<updated>2016-11-25T07:54:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=109351#p109351</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: не запускается команда]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=102181#p102181" />
			<content type="html"><![CDATA[<p><strong>Flasher</strong> CreateObject(&quot;WScript.Shell&quot;).Run &quot;C:\NetAuth\bin\bin\perl.exe C:\NetAuth\script\netauth.pl&quot;,, True не запускается.<br /><strong>shiz</strong> добавление WshShell.CurrentDirectory = &quot;C:\NetAuth\script\&quot; помогло.<br />Всем СПАСИБО!</p>]]></content>
			<author>
				<name><![CDATA[Кир]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=2834</uri>
			</author>
			<updated>2016-04-01T05:48:47Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=102181#p102181</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: не запускается команда]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=102103#p102103" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Кир пишет:</cite><blockquote><p>Рабочий каталог в ярлыке C:\NetAuth\script\. Как указать каталог в моем скрипте?</p></blockquote></div><div class="codebox"><pre><code>Set WshShell = CreateObject(&quot;WScript.Shell&quot;)
WshShell.CurrentDirectory = &quot;C:\NetAuth\script\&quot;
WshShell.Run &quot;C:\NetAuth\bin\bin\perl.exe netauth.pl&quot;,, True
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[shiz]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26249</uri>
			</author>
			<updated>2016-03-29T16:27:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=102103#p102103</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: не запускается команда]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=102094#p102094" />
			<content type="html"><![CDATA[<p>Спасибо. Проверю.</p>]]></content>
			<author>
				<name><![CDATA[Кир]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=2834</uri>
			</author>
			<updated>2016-03-29T08:20:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=102094#p102094</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: не запускается команда]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=102092#p102092" />
			<content type="html"><![CDATA[<p>Весь код:<br /></p><div class="codebox"><pre><code>CreateObject(&quot;WScript.Shell&quot;).Run &quot;C:\NetAuth\bin\bin\perl.exe C:\NetAuth\script\netauth.pl&quot;,, True</code></pre></div><p>5 секунд ожидания там ни к чему.</p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2016-03-29T05:45:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=102092#p102092</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: не запускается команда]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=102091#p102091" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Flasher пишет:</cite><blockquote><p>А в чём прок от запуска скрипта perl из под vbs?</p></blockquote></div><p>До выполнения скрипта perl поднимаю dial-up соединение, а потом закрываю его.<br /></p><div class="quotebox"><cite>shiz пишет:</cite><blockquote><p>Т.к. не задан рабочий каталог и не указан путь к netauth.pl, то, возможно, он ищется не там.</p></blockquote></div><p> ДА. Рабочий каталог в ярлыке C:\NetAuth\script\. Как указать каталог в моем скрипте?</p>]]></content>
			<author>
				<name><![CDATA[Кир]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=2834</uri>
			</author>
			<updated>2016-03-29T05:35:15Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=102091#p102091</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: не запускается команда]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=102068#p102068" />
			<content type="html"><![CDATA[<p>Т.к. не задан рабочий каталог и не указан путь к netauth.pl, то, возможно, он ищется не там.</p>]]></content>
			<author>
				<name><![CDATA[shiz]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26249</uri>
			</author>
			<updated>2016-03-28T14:45:21Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=102068#p102068</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: не запускается команда]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=102067#p102067" />
			<content type="html"><![CDATA[<p><a href="http://script-coding.com/WSH/WshShell.html#3.4.">Описание метода</a>.<br />А в чём прок от запуска скрипта perl из под vbs?</p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2016-03-28T14:42:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=102067#p102067</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[VBS: не запускается команда]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=102062#p102062" />
			<content type="html"><![CDATA[<p>В WindowsXP&nbsp; все работало</p><div class="codebox"><pre><code>Set WshShell=WScript.CreateObject(&quot;WScript.Shell&quot;)

Sub Program(Oops, Style, Wait)
X=WshShell.Run(Oops, Style, Wait)
End Sub

Call Program(&quot;C:\NetAuth\bin\bin\perl.exe netauth.pl&quot;, True, True)
Wscript.Sleep 5000</code></pre></div><p>На Windows 7x64 не запускается.<br />С ярлыка и из командной строки работает.<br />Как запустить команду из скрипта?</p>]]></content>
			<author>
				<name><![CDATA[Кир]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=2834</uri>
			</author>
			<updated>2016-03-28T12:56:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=102062#p102062</id>
		</entry>
</feed>
