<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; WSH: Как запустить скрипт под w2k?]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=3580&amp;type=atom" />
	<updated>2011-02-10T16:49:59Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=3580</id>
		<entry>
			<title type="html"><![CDATA[Re: WSH: Как запустить скрипт под w2k?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=45044#p45044" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>alexii пишет:</cite><blockquote><p>3. Загрузить с форума OSzone и выполнить scriptru_5.7_XP_SP3_rereg.exe, — последний перерегистрирует библиотеки, настройки, контекстное меню…</p></blockquote></div><p>Есть облегченный вариант от Microsoft: <a href="http://support.microsoft.com/kb/949140/en-us">When I run a script in Windows Script, I receive an error message: &quot;Library not registered&quot;</a>. Можно «ручками», можно и просто <a href="http://go.microsoft.com/?linkid=9648765">Fix it</a>. Общее описание здесь: <a href="http://blogs.technet.com/b/fixit4me/archive/2009/01/30/register-windows-script-engine-fix-it-live.aspx">Register Windows Script Engine Fix it Live! - Microsoft Fix it BLOG - Site Home - TechNet Blogs</a>.</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2011-02-10T16:49:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=45044#p45044</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: WSH: Как запустить скрипт под w2k?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=40663#p40663" />
			<content type="html"><![CDATA[<p>в 5.0 небыло ексека</p><p>не просче ли скачать с сайта МС версию 5.6</p>]]></content>
			<author>
				<name><![CDATA[smaharbA]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=2911</uri>
			</author>
			<updated>2010-10-21T03:33:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=40663#p40663</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: WSH: Как запустить скрипт под w2k?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=40660#p40660" />
			<content type="html"><![CDATA[<p>Работа над ошибками.</p><div class="quotebox"><cite>alexii пишет:</cite><blockquote><p>…поддерживает возможности Windows Script Host 5.6 (<span style="color: orange">максимально допустимая версия для Windows 2000</span>).</p></blockquote></div><p><a href="http://www.microsoft.com/downloads/en/details.aspx?familyid=C03D3E49-B40E-4CA1-A0C7-CC135EC4D2BE&amp;displaylang=en">Download details: Windows Script 5.7 for Windows 2000</a><br /></p><div class="quotebox"><cite>alexii пишет:</cite><blockquote><p>…нет возможности различать в классе Win32_Processor число процессоров/ядер/HyperThreading (впрочем, <span style="color: orange">этого и в XP нет</span>) и т.п.</p></blockquote></div><p>В Windows XP SP3 уже есть (из-за включённого в него KB936235 <a href="http://support.microsoft.com/kb/936235/">The number of physical hyperthreading-enabled processors or the number of physical multicore processors is incorrectly reported in Windows XP</a>):<br /></p><div class="quotebox"><blockquote><p>…<br /><em>Before you apply this hotfix, the WMI classes and the WMI properties exhibit the following behavior.</em></p><p><strong><em>Win32_ComputerSystem</em></strong></p><p>&nbsp; &nbsp; * The NumberOfProcessors property returns the number of logical processors that are available on the system.<br />&nbsp; &nbsp; * The NumberOfLogicalProcessors property is not available.</p><p><strong><em>Win32_Processor</em></strong></p><p>&nbsp; &nbsp; * The NumberOfLogicalProcessors property is not available.<br />&nbsp; &nbsp; * The NumberOfCores property is not available.<br />&nbsp; &nbsp; * The number of Win32_Processor instances that are returned is equal to the number of logical processors that are available on the system. </p><p><em>After you apply this hotfix, the WMI classes and the WMI properties exhibit the following behavior.</em></p><p><strong><em>Win32_ComputerSystem</em></strong></p><p>&nbsp; &nbsp; * The NumberOfProcessors property returns the number of physical processors that are available on the system.<br />&nbsp; &nbsp; * The NumberOfLogicalProcessors property returns the number of logical processors that are available on the system.</p><p><strong><em>Win32_Processor</em></strong></p><p>&nbsp; &nbsp; * The NumberOfLogicalProcessors property returns the number of logical processors on the current instance.<br />&nbsp; &nbsp; * The NumberOfCores property returns the number of cores on the current instance.<br />&nbsp; &nbsp; * The number of Win32_Processor instances that are returned is equal to the number of physical processors that are available on the system.</p><p>To determine whether hyperthreading is enabled for the processor, compare the value of the NumberOfCores property to the value of the NumberOfLogicalProcessors property. If hyperthreading is enabled in the basic input/output system (BIOS) for the processor, the value of the NumberOfCores property is less than the value of the NumberOfLogicalProcessors property.</p><p>For example, assume that a dual-processor system contains two processors that are each enabled for hyperthreading. This system can run four threads or four programs at the same time. In this case, the value of the NumberOfCores property is 2, and the value of the NumberOfLogicalProcessors property is 4.</p></blockquote></div><p>Под Windows Server 2003 — KB932370 <a href="http://support.microsoft.com/kb/932370/">The number of physical hyperthreading-enabled processors or the number of physical multicore processors is incorrectly reported in Windows Server 2003</a>.</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2010-10-21T00:55:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=40660#p40660</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: WSH: Как запустить скрипт под w2k?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=27623#p27623" />
			<content type="html"><![CDATA[<p>Спасибо, вроде бы общий смысл уловил. Разбираться в дебрях WSF пока не планирую, просто старый vbs-тест надо прогнать под w2k. <br />Пока раболтает, дальше видно будет.</p>]]></content>
			<author>
				<name><![CDATA[pserg]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=17198</uri>
			</author>
			<updated>2009-08-27T13:52:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=27623#p27623</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: WSH: Как запустить скрипт под w2k?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=27622#p27622" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>pserg пишет:</cite><blockquote><p>p.s. Повторный запуск п. 2. и переименование файла снова в *.vbs спасло ситуацию. Полностью ли поддерживается в w2k функционал из XP/2003, узнаю завтра (скрипт работает &gt;12 часов).</p></blockquote></div><p>Неправильный подход: Windows Script Host 5.7 полностью поддерживает возможности Windows Script Host 5.6 (максимально допустимая версия для Windows 2000). А с самими скриптами при переносе W3K&amp;#8594;W2K могут быть проблемы. Например, технология WMI для Windows 2000 не предусматривала объекта SWbemDateTime, нет класса Win32_PingStatus, нет возможности различать в классе Win32_Processor число процессоров/ядер/HyperThreading (впрочем, этого и в XP нет) и т.п. То есть, для скриптов многое также зависит и от установленных компонент на машину.<br /></p><div class="quotebox"><cite>pserg пишет:</cite><blockquote><p>Какие вообще расширения файлов могут использоваться для WSH-скрипта кроме vbs?</p></blockquote></div><p>Многие. Но в Вашем случае скрипт-то содержит код VBScript, потому попытки дать ему другое допустимое для Windows Script Host расширение не приведут ни к чему хорошему: будет ожидаться другой формат файла или язык.</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2009-08-27T13:27:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=27622#p27622</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: WSH: Как запустить скрипт под w2k?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=27620#p27620" />
			<content type="html"><![CDATA[<p><strong>pserg</strong>, мне сейчас не на чем проверить, но в своё время я пользовал предыдущий вариант того же и взятого оттуда же скрипта *.inf (scriptru_5.7_sp3_rereg.exe):<br /></p><div class="codebox"><pre><code>[Version]
Signature            = &quot;$Windows NT$&quot;

[DefaultInstall]
RunPreSetupCommands    = ProcessesToRun
AddReg            = AddReg.WSH
Reboot                =1

[ProcessesToRun]
&quot;regsvr32 /s &quot;&quot;%11%\jscript.dll&quot;&quot; &quot;
&quot;regsvr32 /s &quot;&quot;%11%\vbscript.dll&quot;&quot; &quot;
&quot;regsvr32 /s &quot;&quot;%11%\scrrun.dll&quot;&quot; &quot;
&quot;regsvr32 /s &quot;&quot;%11%\scrobj.dll&quot;&quot; &quot;
&quot;regsvr32 /s &quot;&quot;%11%\wshext.dll&quot;&quot; &quot;
&quot;regsvr32 /s &quot;&quot;%11%\wshcon.dll&quot;&quot; &quot;
&quot;regsvr32 /s &quot;&quot;%11%\wshom.ocx&quot;&quot; &quot;

[AddReg.WSH]
HKLM, &quot;Software\Microsoft\Windows Script Host\Settings&quot;,&quot;DisplayLogo&quot;,,&quot;1&quot;
HKLM, &quot;Software\Microsoft\Windows Script Host\Settings&quot;,&quot;ActiveDebugging&quot;,,&quot;1&quot;
HKLM, &quot;Software\Microsoft\Windows Script Host\Settings&quot;,&quot;SilentTerminate&quot;,,&quot;0&quot;
HKLM, &quot;Software\Microsoft\Windows Script Host\Settings&quot;,&quot;UseWINSAFER&quot;,,&quot;1&quot;

HKLM,&quot;Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved&quot;,&quot;{60254CA5-953B-11CF-8C96-00AA00B8708C}&quot;,,&quot;%DESC_WSHEXT%&quot;

HKLM,&quot;Software\Microsoft\Windows\CurrentVersion\RunOnce&quot;,&quot;Regsister WScript&quot;,,&quot;wscript -regserver&quot;

HKCR, &quot;.WSH&quot;,&quot;&quot;,,&quot;WSHFile&quot;
HKCR, &quot;WSHFile&quot;,&quot;&quot;,,&quot;%DESC_DOTWSH%&quot;
HKCR, &quot;WSHFile&quot;,&quot;FriendlyTypeName&quot;,0x00020000,&quot;@%SystemRoot%\System32\%FILE_WSHEXT%,-4800&quot;
HKCR, &quot;WSHFile&quot;,&quot;IsShortcut&quot;,,&quot;Yes&quot;
HKCR, &quot;WSHFile\DefaultIcon&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\WScript.exe,1&quot;
HKCR, &quot;WSHFile\Shell\Open&quot;,&quot;&quot;,,&quot;%MENU_OPEN%&quot;
HKCR, &quot;WSHFile\Shell\Open\Command&quot;,,0x00020000,&quot;%SystemRoot%\System32\WScript.exe &quot;&quot;%1&quot;&quot; %*&quot;
HKCR, &quot;WSHFile\Shell\Open2&quot;,&quot;&quot;,,&quot;%MENU_CONOPEN%&quot;
HKCR, &quot;WSHFile\Shell\Open2\Command&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\CScript.exe &quot;&quot;%1&quot;&quot; %*&quot;
HKCR, &quot;WSHFile\ShellEx\PropertySheetHandlers\WSHProps&quot;,&quot;&quot;,,&quot;%CLSID_WSHEXT%&quot;
HKCR, &quot;WSHFile\ShellEx\DropHandler&quot;,&quot;&quot;,,&quot;%CLSID_WSHEXT%&quot;

HKCR, &quot;.VBS&quot;,&quot;&quot;,,&quot;VBSFile&quot;
HKCR, &quot;VBSFile&quot;,&quot;&quot;,,&quot;%DESC_DOTVBS%&quot;
HKCR, &quot;VBSFile&quot;,&quot;FriendlyTypeName&quot;,0x00020000,&quot;@%SystemRoot%\System32\%FILE_WSHEXT%,-4802&quot;
HKCR, &quot;VBSFile\DefaultIcon&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\WScript.exe,2&quot;
HKCR, &quot;VBSFile\ScriptEngine&quot;,&quot;&quot;,,&quot;VBScript&quot;
HKCR, &quot;VBSFile\Shell\Open&quot;,&quot;&quot;,,&quot;%MENU_OPEN%&quot;
HKCR, &quot;VBSFile\Shell\Open\Command&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\WScript.exe &quot;&quot;%1&quot;&quot; %*&quot;
HKCR, &quot;VBSFile\Shell\Open2&quot;,&quot;&quot;,,&quot;%MENU_CONOPEN%&quot;
HKCR, &quot;VBSFile\Shell\Open2\Command&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\CScript.exe &quot;&quot;%1&quot;&quot; %*&quot;
HKCR, &quot;VBSFile\Shell\Edit&quot;,&quot;&quot;,,&quot;%MENU_EDIT%&quot;
HKCR, &quot;VBSFile\Shell\Edit\Command&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\Notepad.exe %1&quot;
HKCR, &quot;VBSFile\Shell\Print&quot;,&quot;&quot;,,&quot;%MENU_PRINT%&quot;
HKCR, &quot;VBSFile\Shell\Print\Command&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\Notepad.exe /p %1&quot;
HKCR, &quot;VBSFile\ShellEx\PropertySheetHandlers\WSHProps&quot;,&quot;&quot;,,&quot;%CLSID_WSHEXT%&quot;
HKCR, &quot;VBSFile\ShellEx\DropHandler&quot;,&quot;&quot;,,&quot;%CLSID_WSHEXT%&quot;

HKCR, &quot;.VBE&quot;,&quot;&quot;,,&quot;VBEFile&quot;
HKCR, &quot;VBEFile&quot;,&quot;&quot;,,&quot;%DESC_DOTVBE%&quot;
HKCR, &quot;VBEFile&quot;,&quot;FriendlyTypeName&quot;,0x00020000,&quot;@%SystemRoot%\System32\%FILE_WSHEXT%,-4803&quot;
HKCR, &quot;VBEFile\DefaultIcon&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\WScript.exe,2&quot;
HKCR, &quot;VBEFile\ScriptEngine&quot;,&quot;&quot;,,&quot;VBScript.Encode&quot;
HKCR, &quot;VBEFile\Shell\Open&quot;,&quot;&quot;,,&quot;%MENU_OPEN%&quot;
HKCR, &quot;VBEFile\Shell\Open\Command&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\WScript.exe &quot;&quot;%1&quot;&quot; %*&quot;
HKCR, &quot;VBEFile\Shell\Open2&quot;,&quot;&quot;,,&quot;%MENU_CONOPEN%&quot;
HKCR, &quot;VBEFile\Shell\Open2\Command&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\CScript.exe &quot;&quot;%1&quot;&quot; %*&quot;
HKCR, &quot;VBEFile\Shell\Edit&quot;,&quot;&quot;,,&quot;%MENU_EDIT%&quot;
HKCR, &quot;VBEFile\Shell\Edit\Command&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\Notepad.exe %1&quot;
HKCR, &quot;VBEFile\Shell\Print&quot;,&quot;&quot;,,&quot;%MENU_PRINT%&quot;
HKCR, &quot;VBEFile\Shell\Print\Command&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\Notepad.exe /p %1&quot;
HKCR, &quot;VBEFile\ShellEx\PropertySheetHandlers\WSHProps&quot;,&quot;&quot;,,&quot;%CLSID_WSHEXT%&quot;
HKCR, &quot;VBEFile\ShellEx\DropHandler&quot;,&quot;&quot;,,&quot;%CLSID_WSHEXT%&quot;

HKCR, &quot;.JS&quot;,&quot;&quot;,,&quot;JSFile&quot;
HKCR, &quot;JSFile&quot;,&quot;&quot;,,&quot;%DESC_DOTJS%&quot;
HKCR, &quot;JSFile&quot;,&quot;FriendlyTypeName&quot;,0x00020000,&quot;@%SystemRoot%\System32\%FILE_WSHEXT%,-4804&quot;
HKCR, &quot;JSFile\DefaultIcon&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\WScript.exe,3&quot;
HKCR, &quot;JSFile\ScriptEngine&quot;,&quot;&quot;,,&quot;JScript&quot;
HKCR, &quot;JSFile\Shell\Open&quot;,&quot;&quot;,,&quot;%MENU_OPEN%&quot;
HKCR, &quot;JSFile\Shell\Open\Command&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\WScript.exe &quot;&quot;%1&quot;&quot; %*&quot;
HKCR, &quot;JSFile\Shell\Open2&quot;,&quot;&quot;,,&quot;%MENU_CONOPEN%&quot;
HKCR, &quot;JSFile\Shell\Open2\Command&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\CScript.exe &quot;&quot;%1&quot;&quot; %*&quot;
HKCR, &quot;JSFile\Shell\Edit&quot;,&quot;&quot;,,&quot;%MENU_EDIT%&quot;
HKCR, &quot;JSFile\Shell\Edit\Command&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\Notepad.exe %1&quot;
HKCR, &quot;JSFile\Shell\Print&quot;,&quot;&quot;,,&quot;%MENU_PRINT%&quot;
HKCR, &quot;JSFile\Shell\Print\Command&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\Notepad.exe /p %1&quot;
HKCR, &quot;JSFile\ShellEx\PropertySheetHandlers\WSHProps&quot;,&quot;&quot;,,&quot;%CLSID_WSHEXT%&quot;
HKCR, &quot;JSFile\ShellEx\DropHandler&quot;,&quot;&quot;,,&quot;%CLSID_WSHEXT%&quot;

HKCR, &quot;.JSE&quot;,&quot;&quot;,,&quot;JSEFile&quot;
HKCR, &quot;JSEFile&quot;,&quot;&quot;,,&quot;%DESC_DOTJSE%&quot;
HKCR, &quot;JSEFile&quot;,&quot;FriendlyTypeName&quot;,0x00020000,&quot;@%SystemRoot%\System32\%FILE_WSHEXT%,-4805&quot;
HKCR, &quot;JSEFile\DefaultIcon&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\WScript.exe,3&quot;
HKCR, &quot;JSEFile\ScriptEngine&quot;,&quot;&quot;,,&quot;JScript.Encode&quot;
HKCR, &quot;JSEFile\Shell\Open&quot;,&quot;&quot;,,&quot;%MENU_OPEN%&quot;
HKCR, &quot;JSEFile\Shell\Open\Command&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\WScript.exe &quot;&quot;%1&quot;&quot; %*&quot;
HKCR, &quot;JSEFile\Shell\Open2&quot;,&quot;&quot;,,&quot;%MENU_CONOPEN%&quot;
HKCR, &quot;JSEFile\Shell\Open2\Command&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\CScript.exe &quot;&quot;%1&quot;&quot; %*&quot;
HKCR, &quot;JSEFile\Shell\Edit&quot;,&quot;&quot;,,&quot;%MENU_EDIT%&quot;
HKCR, &quot;JSEFile\Shell\Edit\Command&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\Notepad.exe %1&quot;
HKCR, &quot;JSEFile\Shell\Print&quot;,&quot;&quot;,,&quot;%MENU_PRINT%&quot;
HKCR, &quot;JSEFile\Shell\Print\Command&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\Notepad.exe /p %1&quot;
HKCR, &quot;JSEFile\ShellEx\PropertySheetHandlers\WSHProps&quot;,&quot;&quot;,,&quot;%CLSID_WSHEXT%&quot;
HKCR, &quot;JSEFile\ShellEx\DropHandler&quot;,&quot;&quot;,,&quot;%CLSID_WSHEXT%&quot;

HKCR, &quot;.WSF&quot;,&quot;&quot;,,&quot;WSFFile&quot;
HKCR, &quot;WSFFile&quot;,&quot;&quot;,,&quot;%DESC_DOTWS%&quot;
HKCR, &quot;WSFFile&quot;,&quot;FriendlyTypeName&quot;,0x00020000,&quot;@%SystemRoot%\System32\%FILE_WSHEXT%,-4801&quot;
HKCR, &quot;WSFFile\DefaultIcon&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\WScript.exe,2&quot;
HKCR, &quot;WSFFile\Shell\Open&quot;,&quot;&quot;,,&quot;%MENU_OPEN%&quot;
HKCR, &quot;WSFFile\Shell\Open\Command&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\WScript.exe &quot;&quot;%1&quot;&quot; %*&quot;
HKCR, &quot;WSFFile\Shell\Open2&quot;,&quot;&quot;,,&quot;%MENU_CONOPEN%&quot;
HKCR, &quot;WSFFile\Shell\Open2\Command&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\CScript.exe &quot;&quot;%1&quot;&quot; %*&quot;
HKCR, &quot;WSFFile\Shell\Edit&quot;,&quot;&quot;,,&quot;%MENU_EDIT%&quot;
HKCR, &quot;WSFFile\Shell\Edit\Command&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\Notepad.exe %1&quot;
HKCR, &quot;WSFFile\Shell\Print&quot;,&quot;&quot;,,&quot;%MENU_PRINT%&quot;
HKCR, &quot;WSFFile\Shell\Print\Command&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\Notepad.exe /p %1&quot;
HKCR, &quot;WSFFile\ShellEx\PropertySheetHandlers\WSHProps&quot;,&quot;&quot;,,&quot;%CLSID_WSHEXT%&quot;
HKCR, &quot;WSFFile\ShellEx\DropHandler&quot;,&quot;&quot;,,&quot;%CLSID_WSHEXT%&quot;

HKCR, &quot;scriptletfile&quot;,&quot;FriendlyTypeName&quot;,0x00020000,&quot;@%SystemRoot%\System32\%FILE_SCROBJ%,-8192&quot;

[Strings]
; Unlocalizable strings
REG_WSH             = &quot;Software\Microsoft\Windows Script Host&quot;
REG_APPROVE         = &quot;Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved&quot;
REG_UNINSTALL       = &quot;Software\Microsoft\Windows\CurrentVersion\Uninstall\WindowsScriptHost&quot;
CLSID_WSHEXT        = &quot;{60254CA5-953B-11CF-8C96-00AA00B8708C}&quot;

; Localizable strings
DISP_WSH            = &quot;Сервер сценариев Windows&quot;
DESC_WSH            = &quot;Сервер сценариев Windows&quot;
DESC_DISKS          = &quot;Файлы сервера сценариев Windows&quot;
TIPS_WSH            = &quot;Позволяет создавать сценарии для автоматического выполнения задний в Windows&quot;

DESC_DOTWSH         = &quot;Файл параметров сервера сценариев Windows&quot;
DESC_DOTVBS         = &quot;Файл сценария VBScript&quot;
DESC_DOTVBE         = &quot;Файл зашифрованного сценария VBScript&quot;
DESC_DOTJS          = &quot;Файл сценария JScript&quot;
DESC_DOTJSE         = &quot;Файл зашифрованного сценария JScript&quot;
DESC_DOTWS          = &quot;Файл сценария Windows&quot;
DESC_WSHEXT         = &quot;Расширения оболочки для сервера сценариев Windows&quot;

DESC_WSHOMLIB       = &quot;Объектная модель сервера сценариев Windows&quot;
DESC_WSHSHELL       = &quot;Объект оболочки сервера сценариев Windows&quot;
DESC_WSHNETWORK     = &quot;Сетевой объект сервера сценариев Windows&quot;

MENU_OPEN           = &quot;&amp;Открыть&quot;
MENU_CONOPEN        = &quot;Открыть в &amp;командной строке&quot;
MENU_DOSOPEN        = &quot;Открыть &amp;в окне MS-DOS&quot;
MENU_EDIT           = &quot;&amp;Изменить&quot;
MENU_PRINT          = &quot;&amp;Печать&quot;

FILE_WSHEXT         = &quot;wshext.dll&quot;
FILE_SCROBJ         = &quot;scrobj.dll&quot;</code></pre></div><p>без проблем под W2K.</p><p>В последней версии (можете сравнить) добавилась секция восстановления ассоциаций:<br /></p><div class="codebox"><pre><code>[ProcessesToAssoc]
&quot;cmd /c &quot;&quot;assoc .WSH=WSHFile&quot;&quot; &quot;
&quot;cmd /c &quot;&quot;assoc .VBS=VBSFile&quot;&quot; &quot;
&quot;cmd /c &quot;&quot;assoc .VBE=VBEFile&quot;&quot; &quot;
&quot;cmd /c &quot;&quot;assoc .JS=JSFile&quot;&quot; &quot;
&quot;cmd /c &quot;&quot;assoc .JSE=JSEFile&quot;&quot; &quot;
&quot;cmd /c &quot;&quot;assoc .WSF=WSFFile&quot;&quot; &quot;</code></pre></div><p>да слегка поменялся механизм вызова перерегистрации («wscript -regserver» после перезагрузки вызывается не в «RunOnce», а в «RunOnceEx»).</p><p>Так что, могу сказать только, что у меня работало.<br /></p><div class="quotebox"><cite>pserg пишет:</cite><blockquote><p>А как же это:<br /></p><div class="quotebox"><blockquote><p>последний перерегистрирует библиотеки, настройки, контекстное меню…</p></blockquote></div><p>Я растолковал, как необходимый элемент для корректной работы.</p></blockquote></div><p>Здесь делается попытка проделать фактически то же самое, что происходит при инсталляции «Windows Script Host»; пользовать нужно если (пере)инсталляция не помогает или невозможна.<br /></p><div class="quotebox"><cite>pserg пишет:</cite><blockquote><p>И еще, переименовав свой *.vbs в *.wsf, получил другую ошибку:</p></blockquote></div><p>Этого недостаточно. Там свой формат оформления; сам скрипт в котором — лишь один из элементов: <a href="http://forum.script-coding.com/viewtopic.php?id=1149">WSH: пишем сценарии в формате WSF</a>.</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2009-08-27T13:16:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=27620#p27620</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: WSH: Как запустить скрипт под w2k?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=27615#p27615" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>alexii пишет:</cite><blockquote><p>Никак. Попробуйте ещё раз пункт 2.<br />P.S. Я подразумевал, что после того, как заработает — можно остановиться <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" />.</p></blockquote></div><p>А как же это:</p><div class="quotebox"><blockquote><p>последний перерегистрирует библиотеки, настройки, контекстное меню…</p></blockquote></div><p>Я растолковал, как необходимый элемент для корректной работы.<br />Получается, что после запуска этого шайтан-ПО vbs-файлы перестают поддерживаться системой. Очень &quot;полезный&quot; inf-файл. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p><p>И еще, переименовав свой *.vbs в *.wsf, получил другую ошибку: <br />Error:Ожидается правильное имя<br />Code:8004000A<br />Source: Windows Script Host</p><p>в строчке комментария(???): &#039; А в Автозапуске Windows - ярлык с параметрами&nbsp; wscript &lt;Путь&gt;\test_2020.vbs|<br />, т.е. ругается на &quot;&lt;Путь&gt;&quot; или &quot;&lt;&quot;. Может быть, д/б использованы другой символ комментария?</p><p>Какие вообще расширения файлов могут использоваться для WSH-скрипта кроме vbs?</p><p>p.s. Повторный запуск п. 2. и переименование файла снова в *.vbs спасло ситуацию. Полностью ли поддерживается в w2k функционал из XP/2003, узнаю завтра (скрипт работает &gt;12 часов).</p>]]></content>
			<author>
				<name><![CDATA[pserg]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=17198</uri>
			</author>
			<updated>2009-08-27T12:13:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=27615#p27615</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: WSH: Как запустить скрипт под w2k?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=27613#p27613" />
			<content type="html"><![CDATA[<p>Никак. Попробуйте ещё раз пункт 2.</p><p>P.S. Я подразумевал, что после того, как заработает — можно остановиться <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" />.</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2009-08-27T11:58:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=27613#p27613</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: WSH: Как запустить скрипт под w2k?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=27611#p27611" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>alexii пишет:</cite><blockquote><p>Последовательно выполнить, перезагружая машину и проверяя, не заработало ли:</p><p>1. Загрузить и установить Update Rollup 1.<br />2. Загрузить и установить/переустановить Windows Script 5.6 for Windows XP and Windows 2000[/url].<br />3. Загрузить и выполнить scriptru_5.7_XP_SP3_rereg.exe, — последний перерегистрирует библиотеки, настройки, контекстное меню…</p></blockquote></div><p>После установки 1. и 2. скрипт вроде бы заработал (весь функционал не проверял, убедился лишь, что затыка на прежнем месте нет).<br />Но когда поставил 3. scriptru_5.7_XP_SP3_rereg. , после перезагрузки скрипт не запускается. Говорит, &quot;There is no script engine for file extension &quot;.vbs&quot;.&quot;. <br />В списке установки и удаления программ этого зверя нет. Как откатиться обратно?</p>]]></content>
			<author>
				<name><![CDATA[pserg]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=17198</uri>
			</author>
			<updated>2009-08-27T11:48:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=27611#p27611</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: WSH: Как запустить скрипт под w2k?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=27602#p27602" />
			<content type="html"><![CDATA[<p>Должно. Там нет ничего военного: самораспаковывающийся 7z-архив, внутри которого единственный файл такого содержания:<br /></p><div class="codebox"><pre><code>[Version]
Signature            = &quot;$Windows NT$&quot;

[DefaultInstall]
RunPreSetupCommands    = ProcessesToRun
AddReg            = AddReg.WSH
RunPostSetupCommands    = ProcessesToAssoc:1
Reboot            =1

[ProcessesToRun]
&quot;regsvr32 /s &quot;&quot;%11%\jscript.dll&quot;&quot; &quot;
&quot;regsvr32 /s &quot;&quot;%11%\vbscript.dll&quot;&quot; &quot;
&quot;regsvr32 /s &quot;&quot;%11%\scrrun.dll&quot;&quot; &quot;
&quot;regsvr32 /s &quot;&quot;%11%\scrobj.dll&quot;&quot; &quot;
&quot;regsvr32 /s &quot;&quot;%11%\wshext.dll&quot;&quot; &quot;
&quot;regsvr32 /s &quot;&quot;%11%\wshcon.dll&quot;&quot; &quot;
&quot;regsvr32 /s &quot;&quot;%11%\wshom.ocx&quot;&quot; &quot;

[ProcessesToAssoc]
&quot;cmd /c &quot;&quot;assoc .WSH=WSHFile&quot;&quot; &quot;
&quot;cmd /c &quot;&quot;assoc .VBS=VBSFile&quot;&quot; &quot;
&quot;cmd /c &quot;&quot;assoc .VBE=VBEFile&quot;&quot; &quot;
&quot;cmd /c &quot;&quot;assoc .JS=JSFile&quot;&quot; &quot;
&quot;cmd /c &quot;&quot;assoc .JSE=JSEFile&quot;&quot; &quot;
&quot;cmd /c &quot;&quot;assoc .WSF=WSFFile&quot;&quot; &quot;

[AddReg.WSH]
HKLM, &quot;Software\Microsoft\Windows Script Host\Settings&quot;,&quot;DisplayLogo&quot;,,&quot;1&quot;
HKLM, &quot;Software\Microsoft\Windows Script Host\Settings&quot;,&quot;ActiveDebugging&quot;,,&quot;1&quot;
HKLM, &quot;Software\Microsoft\Windows Script Host\Settings&quot;,&quot;SilentTerminate&quot;,,&quot;0&quot;
HKLM, &quot;Software\Microsoft\Windows Script Host\Settings&quot;,&quot;UseWINSAFER&quot;,,&quot;1&quot;

HKLM,&quot;Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved&quot;,&quot;{60254CA5-953B-11CF-8C96-00AA00B8708C}&quot;,,&quot;%DESC_WSHEXT%&quot;

HKLM,&quot;Software\Microsoft\Windows\CurrentVersion\RunOnceEx\Regsister WScript&quot;,&quot;1&quot;,,&quot;wscript -regserver&quot;

HKCR, &quot;.WSH&quot;,&quot;&quot;,,&quot;WSHFile&quot;
HKCR, &quot;WSHFile&quot;,&quot;&quot;,,&quot;%DESC_DOTWSH%&quot;
HKCR, &quot;WSHFile&quot;,&quot;FriendlyTypeName&quot;,0x00020000,&quot;@%SystemRoot%\System32\%FILE_WSHEXT%,-4800&quot;
HKCR, &quot;WSHFile&quot;,&quot;IsShortcut&quot;,,&quot;Yes&quot;
HKCR, &quot;WSHFile\DefaultIcon&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\WScript.exe,1&quot;
HKCR, &quot;WSHFile\Shell\Open&quot;,&quot;&quot;,,&quot;%MENU_OPEN%&quot;
HKCR, &quot;WSHFile\Shell\Open\Command&quot;,,0x00020000,&quot;%SystemRoot%\System32\WScript.exe &quot;&quot;%1&quot;&quot; %*&quot;
HKCR, &quot;WSHFile\Shell\Open2&quot;,&quot;&quot;,,&quot;%MENU_CONOPEN%&quot;
HKCR, &quot;WSHFile\Shell\Open2\Command&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\CScript.exe &quot;&quot;%1&quot;&quot; %*&quot;
HKCR, &quot;WSHFile\ShellEx\PropertySheetHandlers\WSHProps&quot;,&quot;&quot;,,&quot;%CLSID_WSHEXT%&quot;
HKCR, &quot;WSHFile\ShellEx\DropHandler&quot;,&quot;&quot;,,&quot;%CLSID_WSHEXT%&quot;

HKCR, &quot;.VBS&quot;,&quot;&quot;,,&quot;VBSFile&quot;
HKCR, &quot;VBSFile&quot;,&quot;&quot;,,&quot;%DESC_DOTVBS%&quot;
HKCR, &quot;VBSFile&quot;,&quot;FriendlyTypeName&quot;,0x00020000,&quot;@%SystemRoot%\System32\%FILE_WSHEXT%,-4802&quot;
HKCR, &quot;VBSFile\DefaultIcon&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\WScript.exe,2&quot;
HKCR, &quot;VBSFile\ScriptEngine&quot;,&quot;&quot;,,&quot;VBScript&quot;
HKCR, &quot;VBSFile\Shell\Open&quot;,&quot;&quot;,,&quot;%MENU_OPEN%&quot;
HKCR, &quot;VBSFile\Shell\Open\Command&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\WScript.exe &quot;&quot;%1&quot;&quot; %*&quot;
HKCR, &quot;VBSFile\Shell\Open2&quot;,&quot;&quot;,,&quot;%MENU_CONOPEN%&quot;
HKCR, &quot;VBSFile\Shell\Open2\Command&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\CScript.exe &quot;&quot;%1&quot;&quot; %*&quot;
HKCR, &quot;VBSFile\Shell\Edit&quot;,&quot;&quot;,,&quot;%MENU_EDIT%&quot;
HKCR, &quot;VBSFile\Shell\Edit\Command&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\Notepad.exe %1&quot;
HKCR, &quot;VBSFile\Shell\Print&quot;,&quot;&quot;,,&quot;%MENU_PRINT%&quot;
HKCR, &quot;VBSFile\Shell\Print\Command&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\Notepad.exe /p %1&quot;
HKCR, &quot;VBSFile\ShellEx\PropertySheetHandlers\WSHProps&quot;,&quot;&quot;,,&quot;%CLSID_WSHEXT%&quot;
HKCR, &quot;VBSFile\ShellEx\DropHandler&quot;,&quot;&quot;,,&quot;%CLSID_WSHEXT%&quot;

HKCR, &quot;.VBE&quot;,&quot;&quot;,,&quot;VBEFile&quot;
HKCR, &quot;VBEFile&quot;,&quot;&quot;,,&quot;%DESC_DOTVBE%&quot;
HKCR, &quot;VBEFile&quot;,&quot;FriendlyTypeName&quot;,0x00020000,&quot;@%SystemRoot%\System32\%FILE_WSHEXT%,-4803&quot;
HKCR, &quot;VBEFile\DefaultIcon&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\WScript.exe,2&quot;
HKCR, &quot;VBEFile\ScriptEngine&quot;,&quot;&quot;,,&quot;VBScript.Encode&quot;
HKCR, &quot;VBEFile\Shell\Open&quot;,&quot;&quot;,,&quot;%MENU_OPEN%&quot;
HKCR, &quot;VBEFile\Shell\Open\Command&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\WScript.exe &quot;&quot;%1&quot;&quot; %*&quot;
HKCR, &quot;VBEFile\Shell\Open2&quot;,&quot;&quot;,,&quot;%MENU_CONOPEN%&quot;
HKCR, &quot;VBEFile\Shell\Open2\Command&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\CScript.exe &quot;&quot;%1&quot;&quot; %*&quot;
HKCR, &quot;VBEFile\Shell\Edit&quot;,&quot;&quot;,,&quot;%MENU_EDIT%&quot;
HKCR, &quot;VBEFile\Shell\Edit\Command&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\Notepad.exe %1&quot;
HKCR, &quot;VBEFile\Shell\Print&quot;,&quot;&quot;,,&quot;%MENU_PRINT%&quot;
HKCR, &quot;VBEFile\Shell\Print\Command&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\Notepad.exe /p %1&quot;
HKCR, &quot;VBEFile\ShellEx\PropertySheetHandlers\WSHProps&quot;,&quot;&quot;,,&quot;%CLSID_WSHEXT%&quot;
HKCR, &quot;VBEFile\ShellEx\DropHandler&quot;,&quot;&quot;,,&quot;%CLSID_WSHEXT%&quot;

HKCR, &quot;.JS&quot;,&quot;&quot;,,&quot;JSFile&quot;
HKCR, &quot;JSFile&quot;,&quot;&quot;,,&quot;%DESC_DOTJS%&quot;
HKCR, &quot;JSFile&quot;,&quot;FriendlyTypeName&quot;,0x00020000,&quot;@%SystemRoot%\System32\%FILE_WSHEXT%,-4804&quot;
HKCR, &quot;JSFile\DefaultIcon&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\WScript.exe,3&quot;
HKCR, &quot;JSFile\ScriptEngine&quot;,&quot;&quot;,,&quot;JScript&quot;
HKCR, &quot;JSFile\Shell\Open&quot;,&quot;&quot;,,&quot;%MENU_OPEN%&quot;
HKCR, &quot;JSFile\Shell\Open\Command&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\WScript.exe &quot;&quot;%1&quot;&quot; %*&quot;
HKCR, &quot;JSFile\Shell\Open2&quot;,&quot;&quot;,,&quot;%MENU_CONOPEN%&quot;
HKCR, &quot;JSFile\Shell\Open2\Command&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\CScript.exe &quot;&quot;%1&quot;&quot; %*&quot;
HKCR, &quot;JSFile\Shell\Edit&quot;,&quot;&quot;,,&quot;%MENU_EDIT%&quot;
HKCR, &quot;JSFile\Shell\Edit\Command&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\Notepad.exe %1&quot;
HKCR, &quot;JSFile\Shell\Print&quot;,&quot;&quot;,,&quot;%MENU_PRINT%&quot;
HKCR, &quot;JSFile\Shell\Print\Command&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\Notepad.exe /p %1&quot;
HKCR, &quot;JSFile\ShellEx\PropertySheetHandlers\WSHProps&quot;,&quot;&quot;,,&quot;%CLSID_WSHEXT%&quot;
HKCR, &quot;JSFile\ShellEx\DropHandler&quot;,&quot;&quot;,,&quot;%CLSID_WSHEXT%&quot;

HKCR, &quot;.JSE&quot;,&quot;&quot;,,&quot;JSEFile&quot;
HKCR, &quot;JSEFile&quot;,&quot;&quot;,,&quot;%DESC_DOTJSE%&quot;
HKCR, &quot;JSEFile&quot;,&quot;FriendlyTypeName&quot;,0x00020000,&quot;@%SystemRoot%\System32\%FILE_WSHEXT%,-4805&quot;
HKCR, &quot;JSEFile\DefaultIcon&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\WScript.exe,3&quot;
HKCR, &quot;JSEFile\ScriptEngine&quot;,&quot;&quot;,,&quot;JScript.Encode&quot;
HKCR, &quot;JSEFile\Shell\Open&quot;,&quot;&quot;,,&quot;%MENU_OPEN%&quot;
HKCR, &quot;JSEFile\Shell\Open\Command&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\WScript.exe &quot;&quot;%1&quot;&quot; %*&quot;
HKCR, &quot;JSEFile\Shell\Open2&quot;,&quot;&quot;,,&quot;%MENU_CONOPEN%&quot;
HKCR, &quot;JSEFile\Shell\Open2\Command&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\CScript.exe &quot;&quot;%1&quot;&quot; %*&quot;
HKCR, &quot;JSEFile\Shell\Edit&quot;,&quot;&quot;,,&quot;%MENU_EDIT%&quot;
HKCR, &quot;JSEFile\Shell\Edit\Command&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\Notepad.exe %1&quot;
HKCR, &quot;JSEFile\Shell\Print&quot;,&quot;&quot;,,&quot;%MENU_PRINT%&quot;
HKCR, &quot;JSEFile\Shell\Print\Command&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\Notepad.exe /p %1&quot;
HKCR, &quot;JSEFile\ShellEx\PropertySheetHandlers\WSHProps&quot;,&quot;&quot;,,&quot;%CLSID_WSHEXT%&quot;
HKCR, &quot;JSEFile\ShellEx\DropHandler&quot;,&quot;&quot;,,&quot;%CLSID_WSHEXT%&quot;

HKCR, &quot;.WSF&quot;,&quot;&quot;,,&quot;WSFFile&quot;
HKCR, &quot;WSFFile&quot;,&quot;&quot;,,&quot;%DESC_DOTWS%&quot;
HKCR, &quot;WSFFile&quot;,&quot;FriendlyTypeName&quot;,0x00020000,&quot;@%SystemRoot%\System32\%FILE_WSHEXT%,-4801&quot;
HKCR, &quot;WSFFile\DefaultIcon&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\WScript.exe,2&quot;
HKCR, &quot;WSFFile\Shell\Open&quot;,&quot;&quot;,,&quot;%MENU_OPEN%&quot;
HKCR, &quot;WSFFile\Shell\Open\Command&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\WScript.exe &quot;&quot;%1&quot;&quot; %*&quot;
HKCR, &quot;WSFFile\Shell\Open2&quot;,&quot;&quot;,,&quot;%MENU_CONOPEN%&quot;
HKCR, &quot;WSFFile\Shell\Open2\Command&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\CScript.exe &quot;&quot;%1&quot;&quot; %*&quot;
HKCR, &quot;WSFFile\Shell\Edit&quot;,&quot;&quot;,,&quot;%MENU_EDIT%&quot;
HKCR, &quot;WSFFile\Shell\Edit\Command&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\Notepad.exe %1&quot;
HKCR, &quot;WSFFile\Shell\Print&quot;,&quot;&quot;,,&quot;%MENU_PRINT%&quot;
HKCR, &quot;WSFFile\Shell\Print\Command&quot;,&quot;&quot;,0x00020000,&quot;%SystemRoot%\System32\Notepad.exe /p %1&quot;
HKCR, &quot;WSFFile\ShellEx\PropertySheetHandlers\WSHProps&quot;,&quot;&quot;,,&quot;%CLSID_WSHEXT%&quot;
HKCR, &quot;WSFFile\ShellEx\DropHandler&quot;,&quot;&quot;,,&quot;%CLSID_WSHEXT%&quot;

HKCR, &quot;scriptletfile&quot;,&quot;FriendlyTypeName&quot;,0x00020000,&quot;@%SystemRoot%\System32\%FILE_SCROBJ%,-8192&quot;

[Strings]
; Unlocalizable strings
REG_WSH             = &quot;Software\Microsoft\Windows Script Host&quot;
REG_APPROVE         = &quot;Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved&quot;
REG_UNINSTALL       = &quot;Software\Microsoft\Windows\CurrentVersion\Uninstall\WindowsScriptHost&quot;
CLSID_WSHEXT        = &quot;{60254CA5-953B-11CF-8C96-00AA00B8708C}&quot;

; Localizable strings
DISP_WSH            = &quot;Сервер сценариев Windows&quot;
DESC_WSH            = &quot;Сервер сценариев Windows&quot;
DESC_DISKS          = &quot;Файлы сервера сценариев Windows&quot;
TIPS_WSH            = &quot;Позволяет создавать сценарии для автоматического выполнения задний в Windows&quot;

DESC_DOTWSH         = &quot;Файл параметров сервера сценариев Windows&quot;
DESC_DOTVBS         = &quot;Файл сценария VBScript&quot;
DESC_DOTVBE         = &quot;Файл зашифрованного сценария VBScript&quot;
DESC_DOTJS          = &quot;Файл сценария JScript&quot;
DESC_DOTJSE         = &quot;Файл зашифрованного сценария JScript&quot;
DESC_DOTWS          = &quot;Файл сценария Windows&quot;
DESC_WSHEXT         = &quot;Расширения оболочки для сервера сценариев Windows&quot;

DESC_WSHOMLIB       = &quot;Объектная модель сервера сценариев Windows&quot;
DESC_WSHSHELL       = &quot;Объект оболочки сервера сценариев Windows&quot;
DESC_WSHNETWORK     = &quot;Сетевой объект сервера сценариев Windows&quot;

MENU_OPEN           = &quot;&amp;Открыть&quot;
MENU_CONOPEN        = &quot;Открыть в &amp;командной строке&quot;
MENU_DOSOPEN        = &quot;Открыть &amp;в окне MS-DOS&quot;
MENU_EDIT           = &quot;&amp;Изменить&quot;
MENU_PRINT          = &quot;&amp;Печать&quot;

FILE_WSHEXT         = &quot;wshext.dll&quot;
FILE_SCROBJ         = &quot;scrobj.dll&quot;</code></pre></div><p>Как видим, всё по-честному, никаких абсолютных путей, только через %SystemRoot%, так что должно работать.</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2009-08-27T09:55:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=27602#p27602</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: WSH: Как запустить скрипт под w2k?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=27589#p27589" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>alexii пишет:</cite><blockquote><p>3. <a href="http://tools.oszone.net/jameszero/tools/scriptru_5.7_XP_SP3_rereg.exe">scriptru_5.7_XP_SP3_rereg.exe</a>, — последний перерегистрирует библиотеки, настройки, контекстное меню…</p></blockquote></div><p>Лекарство подходит и для w2k?</p>]]></content>
			<author>
				<name><![CDATA[pserg]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=17198</uri>
			</author>
			<updated>2009-08-26T20:11:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=27589#p27589</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: WSH: Как запустить скрипт под w2k?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=27585#p27585" />
			<content type="html"><![CDATA[<p>Последовательно выполнить, перезагружая машину и проверяя, не заработало ли:</p><p>1. Загрузить и установить Update Rollup 1 (<a href="http://support.microsoft.com/kb/900345/">Исправления, включенные в накопительный пакет обновления 1 для Microsoft Windows 2000 с пакетом обновления 4 (SP4), датированный 28 июня 2005 г. .</a>).<br />2. Загрузить и установить/переустановить <a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=C717D943-7E4B-4622-86EB-95A22B832CAA&amp;displaylang=en">Windows Script 5.6 for Windows XP and Windows 2000</a>.<br />3. Загрузить с форума <a href="http://forum.oszone.net/">OSzone</a> и выполнить <a href="http://tools.oszone.net/jameszero/tools/scriptru_5.7_XP_SP3_rereg.exe">scriptru_5.7_XP_SP3_rereg.exe</a>, — последний перерегистрирует библиотеки, настройки, контекстное меню…</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2009-08-26T18:07:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=27585#p27585</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: WSH: Как запустить скрипт под w2k?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=27579#p27579" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>The gray Cardinal пишет:</cite><blockquote><p>Может, дело не в ОС, а там стоит просто корявая версия WSH?</p></blockquote></div><p>А как это определить? Винда ставилась обычным способом. Накрыта СПО4. WSH долен быть стандартный для w2k. Ясно, что дело в нем. Как исправить или что нужно доставить?</p>]]></content>
			<author>
				<name><![CDATA[pserg]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=17198</uri>
			</author>
			<updated>2009-08-26T16:26:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=27579#p27579</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: WSH: Как запустить скрипт под w2k?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=27578#p27578" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>alexii пишет:</cite><blockquote><p><strong>pserg</strong>, желательно привести код скрипта.</p></blockquote></div><div class="codebox"><pre><code>Option Explicit
Dim WDpul, WshShell, PSusp, SysEnv
Dim Num, Per, Msg, iKrug
WScript.Sleep 180000    &#039; ждем, когда автостартует приложение
Set WshShell = WScript.CreateObject(&quot;WScript.Shell&quot;)
Set SysEnv = WshShell.Environment(&quot;SYSTEM&quot;)
iKrug = SysEnv(&quot;KrugRoot&quot;)+&quot;Bin\KrugTaskStarter.exe&quot;
set WDpul = WshShell.Exec(iKrug)     &#039;запускаем приложение
&#039;дальше код, до которого не доходит выполнение</code></pre></div>]]></content>
			<author>
				<name><![CDATA[pserg]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=17198</uri>
			</author>
			<updated>2009-08-26T16:23:15Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=27578#p27578</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: WSH: Как запустить скрипт под w2k?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=27566#p27566" />
			<content type="html"><![CDATA[<p><strong>pserg</strong>, желательно привести код скрипта.</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2009-08-26T14:26:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=27566#p27566</id>
		</entry>
</feed>
