Jump to content

FileCreateShortcut for Folder Truncates Target


Lattis2003
 Share

Recommended Posts

Trying to creating a shortcut for a network folder using FileCreateShortcut. The script is running as a local admin.

If the drive letter exists then the shortcut is created successfull. The full path does not have to exist.

If the drive letter does not exist then the shortcut truncates the target to 8 characters.

Creating a shortcut to a file works even if the drive letter or path does not exist.

FileCreateShortcut("R:\TestFolder", @DesktopDir & "\Shortcut to TestFolder")

Vbscript has the same behavior.

I can copy the shortcut but looking for other ways since i have never ran into this.

Thanks

Lattis

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...