Hi All,
Ive got a simple problem while trying to create a shortcut to open a folder on the local hard drive.
I use the following code
The shortcut gets created but when clicked on a dialog box appears and says windows cannot open files of this type please select an application to open the file. If I manually pick explorer.exe it opens up great.
I have also discovered if I right click on the shortcut and go to properties and add an extra \ to the path it is automatically removed by windows but the shortcut then starts working correctly.
Any ideas? Am I doing something stupid?
Ive got a simple problem while trying to create a shortcut to open a folder on the local hard drive.
I use the following code
Code:
Shell.CreateShortcut(Shell.GetFolder(SHF_DESKTOP), "Routefinder Networks", first_hdd.."\\RouteFinder Networks\\", "", "", _WindowsFolder .. "\\explorer.exe", 1, SW_SHOWNORMAL);
I have also discovered if I right click on the shortcut and go to properties and add an extra \ to the path it is automatically removed by windows but the shortcut then starts working correctly.
Any ideas? Am I doing something stupid?
Comment