Archive: Folder shortcut


Folder shortcut
Hi guys,

I'm having a problem with a shortcut. I know this has been discussed already but this time this is slightly different.

Indeed, I'm creating a folder shorcut. What the installation does is:

-creation of the shortcut
-correct start in (nothing)
-correct target

The only problem I've got is that when double clicking on the shortcut, a WINDOWS window appears asking me for a prog to choose.

Apparently WINDOWS doesn't recognise that the shortcut points to a folder.

Here is the code:

SetOutPath ""
CreateShortcut "$PROGRAMFILES\MasterSuite\MasterBar\Shortcut to Schedules.lnk" "$PROGRAMFILES\MasterSuite\VideoMaster\Schedules" "" "$SYSDIR\SHELL32.dll" "3" "" "" ""



Any ideas.

Thanks.

alffla


Try

CreateShortcut "$PROGRAMFILES\MasterSuite\MasterBar\Shortcut to Schedules.lnk" "explorer '$PROGRAMFILES\MasterSuite\VideoMaster\Schedules'" "" "$SYSDIR\SHELL32.dll" "3" "" "" ""


-Stu

Oh Afrow UK, there has another topic saying about problems using CreateShortcut. And now you did exactly as the one who had problems. To fix it:


CreateShortcut "$PROGRAMFILES\MasterSuite\MasterBar\Shortcut to Schedules.lnk" "explorer" "$PROGRAMFILES\MasterSuite\VideoMaster\Schedules" "$SYSDIR\SHELL32.dll" "3"

Try this:

CreateShortcut "$PROGRAMFILES\MasterSuite\MasterBar\Shortcut to Schedules.lnk" "$PROGRAMFILES\MasterSuite\VideoMaster\Schedules"


Thanks guys.

The solution of deguix is the correct one.

Master of all.

Thanks again,

alffla


Just another quick question.

When I look at the properties of the shortcuts under target type, it says "Application". Is there a way to change that too because normally a shortcut of a folder created manually, it says Folder type. I know that this shortcut calls Explorer with a parameter but it's not right if you see what I mean...

Thanks anyway....it works...that's what I wanted first

Cheers,
alffla


When I use:

CreateShortcut "$PROGRAMFILES\MasterSuite\MasterBar\Shortcut to Schedules.lnk" "$PROGRAMFILES\MasterSuite\VideoMaster\Schedules"

the shortcut's Properties include:

Target Type: File Folder