Jump to content
Sign in to follow this  

FileCreateShortcut for Folder Truncates Target

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.



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