|
|
|
Помогите написать скрипт
|
|||
|---|---|---|---|
|
#18+
Пожалуйста напишите скрипт, такой чтобы можно с удаленной машины запустить какое то приложение. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 31.03.2008, 08:35 |
|
||
|
Помогите написать скрипт
|
|||
|---|---|---|---|
|
#18+
Vladimir MihailovichПожалуйста напишите скрипт, такой чтобы можно с удаленной машины запустить какое то приложение. ого! и в sql не описать запросы ваши... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 31.03.2008, 09:06 |
|
||
|
Помогите написать скрипт
|
|||
|---|---|---|---|
|
#18+
А как запустить что то? var RemoteScript = Controller.CreateScript("test.js", "remoteserver"); Это как получается? то что в скобках это скрипт лежащий на моем компьютере? т е в нем я должен прописать то что может запуститься на моем компьютере, а remoteserver это имя компьютера в сети? Напишите плиз как запустить .... а то мне кажется что надо еще прописывать.... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 31.03.2008, 14:35 |
|
||
|
Помогите написать скрипт
|
|||
|---|---|---|---|
|
#18+
Погугли WshController, например вот: http://windowsitpro.com/windowsscripting/article/articleid/23607/rem-getting-the-wshcontroller-object-to-work.html ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 31.03.2008, 15:22 |
|
||
|
Помогите написать скрипт
|
|||
|---|---|---|---|
|
#18+
Несколько часов потратил .... что то не получается Написал скрипт Gruss.js который по моему мнению бы запускался на удаленной машине ( в моей сети локальной) //32NET/Vovan Вот листинг моего скрипта Gruss.js: WScript.Echo("Das Programm wird gestartet!!!"); WScript.Echo("Bitte warten"); WScript.Echo("Loading"); WScript.Sleep(3000); WScript.Echo("Willkommen!!! Wir grussen Sie :) ^:^ "); ================================================================= var Controller = WScript.CreateObject("WSHController"); var RemoteScript = Controller.CreateScript("Gruss.js", "WinNT://Vovan,user"); RemoteScript.Execute(); while (RemoteScript.Status != 2) { WScript.Sleep(100); } Проходит сек 5 выскакивает ошибка , Компьютер удаленного сервера не существует либо не доступен... перебрал множество вариантов.... так что же происходит? Дело как мне кажется кроется во вторых ковычках, честно говоря вобще не представляю в чем дело ( множество вариантов перебрал .... :( ) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 02.04.2008, 00:02 |
|
||
|
Помогите написать скрипт
|
|||
|---|---|---|---|
|
#18+
http://www.microsoft.com/technet/scriptcenter/guide/sas_wsh_immo.mspx?mfr=true Setup Required to Run Scripts Remotely Before you can use the WshController object to run scripts on remote computers, you must first ensure that your environment is configured as follows: •Both the local and target remote computers must be running WSH version 5.6. •You must add a string-valued entry (REG_SZ) named Remote to the registry subkey HKEY_LOCAL_ MACHINE\SOFTWARE\Microsoft\Windows Script Host\Settings and set its value to 1 on all target remote computers. You do not need to add this entry to the registry of the local computer from which you run the controller script. Caution •Changing the registry with a script can easily propagate errors. The scripting tools bypass safeguards, allowing settings that can damage your system, or even require you to reinstall Windows. Before scripting changes to the registry, test your script thoroughly and back up the registry on every computer on which you will make changes. For more information about scripting changes to the registry, see the Registry Reference on the Windows 2000 Server Resource Kit companion CD or at http://www.microsoft.com/reskit. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 02.04.2008, 10:20 |
|
||
|
|

start [/forum/topic.php?fid=22&msg=35223545&tid=1456667]: |
0ms |
get settings: |
9ms |
get forum list: |
18ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
165ms |
get topic data: |
10ms |
get forum data: |
2ms |
get page messages: |
49ms |
get tp. blocked users: |
1ms |
| others: | 247ms |
| total: | 507ms |

| 0 / 0 |
