I am trying to run a shortcut using the following line of code:
lRet = ShellExecute(0&, "Open", [File Path], VBNullString, [File Parent Folder], 1&)
Its works fine with all files except with shortcuts(*.lnk). My VB6 IDE always crashes when I run the code. Where did I go wrong? Is there another way to do this?
lRet = ShellExecute(0&, "Open", [File Path], VBNullString, [File Parent Folder], 1&)
Its works fine with all files except with shortcuts(*.lnk). My VB6 IDE always crashes when I run the code. Where did I go wrong? Is there another way to do this?