Jump to content

FileCreateShortcut() not working when target not available

Recommended Posts

using beta 84

I've created a script that is simply this:

FileCreateShortcut('"H:\930\Customer Support Scripts\Batch\std_install_1.bat"',@StartupCommonDir & "\baseload.lnk")

On my own box (that has the mapping to h:), the shortcut gets created properly.

> "H:\930\Customer Support Scripts\Batch\std_install_1.bat"

When I run the script on a PC that does not yet have the mapping I get the following back:

> "H:\930\Customer\Batch\std_install_1.bat"

(Note that " Support Scripts" is missing)

The drive mapping will be there when the PC reboots but the shortcut will fail cuz it dropped out the correct path info. Why is AutoIT doing this? Argh!


Edited by sshrum

Sean Shrum :: http://www.shrum.net

All my published AU3-based apps and utilities

'Make it idiot-proof, and someone will make a better idiot'


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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...