Jump to content
Sign in to follow this  

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'


Share this post

Link to post
Share on other sites

make it create the schort cut after rebooting by putting a shor script in the start-up

then it creates the shortcut and deletes itself too




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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.