Jump to content

Recommended Posts

Posted

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

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
×
×
  • Create New...