MessageBox.Show(link.TargetPath) //Show the target in a MessageBox using IWshShortcutīut it cause errors Errorđ The type or namespace name 'WshShell' could not be found (are you missing a using directive or an assembly reference?)Ğ:\Temp\vs\texture tool 1.3\src\Texture Tool\MainForm.csĖ5đ7 Texture ToolĮrrorĒ The type or namespace name 'WshShell' could not be found (are you missing a using directive or an assembly reference?)Ğ:\Temp\vs\texture tool 1.3\src\Texture Tool\MainForm.csĖ5ē8 Texture ToolĮrrorē The type or namespace name 'IWshShortcut' could not be found (are you missing a using directive or an assembly reference?)Ğ:\Temp\vs\texture tool 1.3\src\Texture Tool\MainForm.csĖ6đ7 Texture ToolĮrrorĔ The type or namespace name 'IWshShortcut' could not be found (are you missing a using directive or an assembly reference?)Ğ:\Temp\vs\texture tool 1.3\src\Texture Tool\MainForm.csĖ6ē8 Texture ToolĮrrorĕ The name 'linkPathName' does not exist in the current contextĞ:\Temp\vs\texture tool 1.3\src\Texture Tool\MainForm. IWshShortcut link = (IWshShortcut)shell.CreateShortcut(linkPathName) //Link the interface to our shortcut So, I'm calling this function in another recursive function and put in this function each time another directory from my hard disk. I want to get from the shortcut only the path name to the file it self. Extract Target path from a shortcut I know how to add a target path to a created shortcut: Dim WSHShell As Object Dim MyShortcut As Object Set WSHShell CreateObject ('WScript.Shell') Set MyShortcut WSHShell.CreateShortcut (pathwayhere
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |