alffla
10th August 2004 12:31 UTC
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
Afrow UK
10th August 2004 13:14 UTC
Try
CreateShortcut "$PROGRAMFILES\MasterSuite\MasterBar\Shortcut to Schedules.lnk" "explorer '$PROGRAMFILES\MasterSuite\VideoMaster\Schedules'" "" "$SYSDIR\SHELL32.dll" "3" "" "" ""
-Stu
deguix
10th August 2004 13:45 UTC
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"
pengyou
10th August 2004 13:49 UTC
Try this:
CreateShortcut "$PROGRAMFILES\MasterSuite\MasterBar\Shortcut to Schedules.lnk" "$PROGRAMFILES\MasterSuite\VideoMaster\Schedules"
alffla
10th August 2004 14:25 UTC
Thanks guys.
The solution of deguix is the correct one.
Master of all.
Thanks again,
alffla
alffla
10th August 2004 14:31 UTC
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
pengyou
11th August 2004 00:24 UTC
When I use:
CreateShortcut "$PROGRAMFILES\MasterSuite\MasterBar\Shortcut to Schedules.lnk" "$PROGRAMFILES\MasterSuite\VideoMaster\Schedules"
the shortcut's Properties include:
Target Type: File Folder