Robert Posted December 11, 2008 Posted December 11, 2008 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"')
Robert Posted December 12, 2008 Author Posted December 12, 2008 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.
liteswap Posted December 13, 2008 Posted December 13, 2008 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?
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now