davezub Posted July 26, 2006 Share Posted July 26, 2006 Can somebody test FileCreateShortcut and see if it working the way I think it should work. Here is my code. FileCreateShortcut("\\cg\ld\packages\OMS\OMS_printers.exe","C:\Documents and Settings\All Users\Start Menu\Programs\Guidance\OMS Backup Printers.lnk","","","OMS Backup Printers",@SystemDir & "\shell32.dll","","61",@SW_SHOWNORMAL) It fails with a zero. If I create the Guidance folder it works. If I create the shortcut in: C:\Documents and Settings\All Users\Start Menu\Programs It works. I coded around it by first creating the guidance folder first. I running the latest beta 131. Link to comment Share on other sites More sharing options...
jpm Posted July 26, 2006 Share Posted July 26, 2006 Can somebody test FileCreateShortcut and see if it working the way I think it should work. Here is my code.FileCreateShortcut("\\cg\ld\packages\OMS\OMS_printers.exe","C:\Documents and Settings\All Users\Start Menu\Programs\Guidance\OMS Backup Printers.lnk","","","OMS Backup Printers",@SystemDir & "\shell32.dll","","61",@SW_SHOWNORMAL)It fails with a zero. If I create the Guidance folder it works. If I create the shortcut in: C:\Documents and Settings\All Users\Start Menu\ProgramsIt works. I coded around it by first creating the guidance folder first. I running the latest beta 131.This function does not create folder for you. so if guidance does not exist you have to do it before Link to comment Share on other sites More sharing options...
davezub Posted July 27, 2006 Author Share Posted July 27, 2006 This function does not create folder for you. so if guidance does not exist you have to do it before Cool so working as designed. May want to consider this as an enhancement to future version of this great program. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now