Sign in to follow this  
Followers 0
davezub

FileCreateShortcut possible bug

3 posts in this topic

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.

Share this post


Link to post
Share on other sites



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.

This function does not create folder for you. so if guidance does not exist you have to do it before :whistle:

Share this post


Link to post
Share on other sites

This function does not create folder for you. so if guidance does not exist you have to do it before :whistle:

Cool so working as designed. May want to consider this as an enhancement to future version of this great program.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0