seriych 2,178 #53502 Posted April 4, 2013 @Nikaforus, Тоже самое, пробуй так: sFile = "C:\Program Files\World_of_Tanks\xvm-stat.exe /launcher" Dim oShell Set oShell = WScript.CreateObject ("WSCript.shell") oShell.run """" & sFile & """", 0 Set oShell = Nothing Quote Share this post Link to post Short link Share on other sites
Nikaforus 2 #53511 Posted April 4, 2013 @Nikaforus, Тоже самое, пробуй так: sFile = "C:\Program Files\World_of_Tanks\xvm-stat.exe /launcher" Dim oShell Set oShell = WScript.CreateObject ("WSCript.shell") oShell.run """" & sFile & """", 0 Set oShell = Nothing Cценарий: C:\Program Files\World_of_Tanks\test.vbs Строка:4 Символ:1 Ошибка: Не удается найти указанный файл. Код 8007002 Quote Share this post Link to post Short link Share on other sites
seriych 2,178 #53514 Posted April 4, 2013 @Nikaforus, А так: sFile = "C:\Program Files\World_of_Tanks\xvm-stat.exe" Dim oShell Set oShell = WScript.CreateObject ("WSCript.shell") oShell.run """" & sFile & """ /launcher", 0 Set oShell = Nothing Quote Share this post Link to post Short link Share on other sites
Nikaforus 2 #53517 Posted April 4, 2013 (edited) @Nikaforus,А так: sFile = "C:\Program Files\World_of_Tanks\xvm-stat.exe"Dim oShellSet oShell = WScript.CreateObject ("WSCript.shell")oShell.run """" & sFile & """ /launcher", 0Set oShell = Nothing Сценарий...Строка 6 Символ 22 Ошибка: Предполагается наличие окончания инструкции Код 800А0401 Источник: Ошибка компиляции Причем тест обновы установил на D в Games. Все работает со всеми модами от 8.4))) А тут - хоть убей. Не хочет из програмс файл запускаться Edited April 4, 2013 by Nikaforus Quote Share this post Link to post Short link Share on other sites
seriych 2,178 #53520 Posted April 4, 2013 Строка 6 Какая строка 6? Их там всего 5. test2.zip Quote Share this post Link to post Short link Share on other sites
Nikaforus 2 #53522 Posted April 4, 2013 (edited) Спасибо. Работает)) Edited April 4, 2013 by Nikaforus Quote Share this post Link to post Short link Share on other sites