PDA

View Full Version : Shortcut in Start menu



ThunderBoy
07-19-2005, 03:21 PM
Hi!

I need create Shortcut in Start menu for my folder Utilities (Start > Programs > Pedrov project > Utilities)

%AppFolder% is C:\Program files\Pedrov project

This is my code:

if (check01) then
StatusDlg.Show();
Zip.Extract("%SourceDrive%\\--==-Pedro==--\\Utilities.zip", {"*.*"}, "%AppFolder%", true, true, "", 3);
StatusDlg.Hide();
:huh Create shortcut:
Shell.CreateShortcut(Shell.GetFolder(SHF_STARTMENU PROGRAMS), "Utilities", SessionVar.Expand("%AppFolder%\\Utilities"), "", "", "%WindowsFolder%\\Utilities.ico", 0, SW_SHOWNORMAL, , "");
end :huh

Shell.CreateShortcut(Shell.GetFolder(SHF_STARTMENU PROGRAMS) Start > Programs > ?????????? I need (Start > Programs > Pedrov project > Utilities)


What I have got to use script?

Thx

HMMurdock
07-19-2005, 04:06 PM
I think you want:

Shell.CreateShortcut(Shell.GetFolder(SHF_STARTMENU PROGRAMS).."\\Pedrov Project\\Utilities", "ShortcutName", SessionVar.Expand("%AppFolder%\\Utilities\\MyExe.exe"), "", "", "%WindowsFolder%\\Utilities.ico", 0, SW_SHOWNORMAL, , "");

Where "ShortcutName" is the name of the shortcut you want to display in the Start Menu and "MyExe.exe" is the file you want the shortcut to open.

ThunderBoy
07-20-2005, 08:52 AM
Thank you HMMurdock

Correctly this i am needed.

Script is functionally.