Sign in to follow this  
Followers 0
Robert

Script to Start Application

3 posts in this topic

I have an application that i am building an app to launch an MS Access. Below is the code i have. I need it to add a reg key and copy a director. Then launch the application. The copy is working and i thought launching the application was but today it doent appear to be working. I want it to launch the app then exit the script.

RegDelete("HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Access\Security\Trusted Locations\Location2")

RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Access\Security\Trusted Locations\Location2", "Path", "REG_SZ", ""& @AppDataDir & "\ATL\LIMS\ProgramData\")

DirCopy ("C:\ATL\LIMS\ProgramData", @AppDataDir & "\ATL\LIMS\ProgramData", 1)

Run('"C:\Program Files (x86)\Microsoft Office\OFFICE11\MSACCESS.EXE" /excl /runtime /profile "Sample Master v8 Client Install" /wrkgrp "' & @AppDataDir & '\ATL\LIMS\ProgramData\SMv8Security.MDW" "' & @AppDataDir & '\ATL\LIMS\ProgramData\SMv8.mdb"')

Share this post


Link to post
Share on other sites



anyone. for some reason the script works but when it runs the app its still running it from C:\ATL\LIMS\ProgramData and not the users folder.

Share this post


Link to post
Share on other sites

anyone. for some reason the script works but when it runs the app its still running it from C:\ATL\LIMS\ProgramData and not the users folder.

Looks to me like you need to check your quotes. Are they properly matched?

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  
Followers 0