Код:
Код: Выделить всё
msgbox "Меню "Пуск""выдаёт ошибку. Хочу напечатать именно Меню "Пуск" ,а не Меню Пуск. Так же и с другими командами. Пишу скрипт добавляющий строки в файл и в этих строчках есть кавычки. Был бы признателен за помощь.
Код: Выделить всё
msgbox "Меню "Пуск""
Код: Выделить всё
WSHShell.Run "C:\Windows\notepad.exe c:\test.txt"Код: Выделить всё
WSHShell.Run ""C:\Program Files\Internet Explorer\Iexplore.exe""Код: Выделить всё
WSHShell.Run """C:\Program Files\Internet Explorer\Iexplore.exe"""Код: Выделить всё
""Код: Выделить всё
""""""
Код: Выделить всё
Set Create = CreateObject("Scripting.FileSystemObject")
Set Folder = Create.GetFolder(WshShell.CurrentDirectory)
Str = Folder.Path &"\Папка\Прога.exe"
WSHShell.Run StrКод: Выделить всё
Set WshShell = CreateObject("WScript.Shell")
Set oExec = WshShell.Exec("Полный_путь\прога.exe")Код: Выделить всё
Set Create = CreateObject("Scripting.FileSystemObject")
Set Folder = Create.GetFolder(WshShell.CurrentDirectory)
Str = Folder.Path &"\Папка\Прога.exe"
WSHShell.Run Str