Jump to content

FileCreateShortcut Creating Target Field With \ instead of / on a switch


Recommended Posts

OK.  This will take some explaining.  First of all I'm on Windows 7 64bit

I need to create a shortcut that is used to open access databases with security.   It references an MDE file.

So I create a shortcut with the target field:

<MSACCESS_PATH> <DATABASE_PATH> /SWITCH <SECURITY_FILE_PATH>

I have to have the switch where it is in the target field or the shortcut doesn't work properly.   If I use the "args" parameter in FileCreateShortcut to add the switch it adds the switch at the end of the string (which doesn't work).   

I can get it to insert the switch properly if I add the whole shortcut path to the "file" parameter of FileCreateShortcut.   The only problem is that it reverses the forward slash / to a backslash which makes the switch invalid.

 

Link to comment
Share on other sites

Have you just tried putting the args in the path and vice versa and see if it works?

Make the working dir the args and the security path. I would do exactly this and then try a msgbox to make sure the output looked OK.

Edited by computergroove

Get Scite to add a popup when you use a 3rd party UDF -> http://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/user-calltip-manager.html

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...