Jump to content

Script to Start Application


Robert
 Share

Recommended Posts

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"')

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