Имя пользователя:
Пароль:
 

Название темы: [решено] меню ПУСК
Показать сообщение отдельно

Аватара для Ins_16

Пользователь


Сообщения: 64
Благодарности: 11

Профиль | Отправить PM | Цитировать


Iska, да,просто открытие меню ПУСК, как на vbs:
п.с. и создание ярлыка


Покажу пример создания ярлыка для WinRar в VBS

Код: Выделить весь код
Set WshShell = CreateObject("WScript.Shell")
Set FSO = CreateObject("Scripting.FileSystemObject")
Set SpecialFolders = WshShell.SpecialFolders
programfiles = WshShell.ExpandEnvironmentStrings("%ProgramFiles%")
UserProfile = WshShell.ExpandEnvironmentStrings("%UserProfile%")
AllUsersProfile = WshShell.ExpandEnvironmentStrings("%AllUsersProfile%")
alusr = AllUsersProfile & "\Главное меню\Программы\Стандартные"

if FSO.FileExists (programfiles & "\WinRAR\WinRAR.exe") then
	Set WshShortcut = WshShell.CreateShortcut(alusr & "\WinRar.lnk")
	WshShortcut.Description = "Архиватор"
	WshShortcut.TargetPath = programfiles & "\WinRAR\WinRAR.exe"
	WshShortcut.WindowStyle = 1
	WshShortcut.Save
End if

Отправлено: 20:51, 24-08-2011 | #5

Название темы: [решено] меню ПУСК