• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 455
  • Last Modified:

Changing target of a shortcut through a batch file

We have an Access database that uses the SageKey installation app for deployment.  However, the Access front-end that is loaded, resides on the server and is NOT installed during the user installation (hope that makes sense).  The installation routine, puts a very small Access database onto the users PC and puts the shortcut for that mde file on the users desktop.  I need to change the target for that shortcut to look at the file on the server (rather than the local file that was just installed).  

At the end of the installation, I can get the SageKey app to run a batch file, which ideally would change the target of the shortcut (I'm guessing through the registry).  Can this be done and can you give me any pointers?

Any help would be greatly appreciated - thank you.
0
Andy Brown
Asked:
Andy Brown
  • 2
1 Solution
 
MINDSUPERBCommented:
The link below is a good resource to consider regarding your issue.

http://blogs.technet.com/b/heyscriptingguy/archive/2005/02/09/how-can-i-change-the-target-of-a-desktop-shortcut.aspx

Sincerely,
Ed
0
 
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
Also note that it is a very bad idea to share an Access FrontEnd file. Running that file over a network is certain to cause performance issues, recordlocking troubles, etc etc. You really should install the app on each user's desktop and allow those users to share the backend file.
0
 
Andy BrownAuthor Commented:
Thanks guys.

LSM - Don't worry it's simply a loader
0
 
Andy BrownAuthor Commented:
Great stuff - thank you.  That gave me everything I needed.

Thanks again.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now