473,326 Members | 2,196 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

How to open a secured access DB

Hi,

I have an overnight batch file that run an access DB (name it
AG_Import.MDB). AG_Import.MDB import data into a secured back-end DB
(AG_be.MDB).

If I run it manually, I use:
"C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE"
"C:\AUF\AG_Import" /wrkgrp "C:\AUF\Sécurité.mdw"
which prompt me for a login screen ... I provide user id and pswd ...
everything works fine after.

Now, my question is:
HOW TO RUN THAT SAME COMMAND IN A BATCH FILE AND PASS AUTOMATIQUELLY USER
/PSWD WHITOUT MY INTERVENTION ?

Thank you for your help, I already spent enought time on this ... My client
is waiting for my work.

Nour.


Nov 13 '05 #1
3 1899
"Nour" <nb*******@sympatico.ca> wrote:
"C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE"
"C:\AUF\AG_Import" /wrkgrp "C:\AUF\Sécurité.mdw"


"C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE"
"C:\AUF\AG_Import" /wrkgrp "C:\AUF\Sécurité.mdw" /user MyUserName /pwd
MyPassword

With obvious security implications of course :-)

Regards,
Keith.
www.keithwilby.com
Nov 13 '05 #2
Nour wrote:
Hi,

I have an overnight batch file that run an access DB (name it
AG_Import.MDB). AG_Import.MDB import data into a secured back-end DB
(AG_be.MDB).

If I run it manually, I use:
"C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE"
"C:\AUF\AG_Import" /wrkgrp "C:\AUF\Sécurité.mdw"
which prompt me for a login screen ... I provide user id and pswd ...
everything works fine after.

Now, my question is:
HOW TO RUN THAT SAME COMMAND IN A BATCH FILE AND PASS AUTOMATIQUELLY USER
/PSWD WHITOUT MY INTERVENTION ?


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

You need to add the user and password switches to the end of your
command:

"C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE"
"C:\AUF\AG_Import" /wrkgrp "C:\AUF\Sécurité.mdw" /user <user name> /pwd
<password>

--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQi31IIechKqOuFEgEQIJkQCgsMZhi9SUd+JRY6sq0lLbac UJpQgAn1VG
woyvIH5ViCJ9qjp7mbdgrKfW
=bk71
-----END PGP SIGNATURE-----
Nov 13 '05 #3
Many thanks to you.

"MGFoster" <me@privacy.com> a écrit dans le message de news:
ky*****************@newsread3.news.pas.earthlink.n et...
Nour wrote:
Hi,

I have an overnight batch file that run an access DB (name it
AG_Import.MDB). AG_Import.MDB import data into a secured back-end DB
(AG_be.MDB).

If I run it manually, I use:
"C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE"
"C:\AUF\AG_Import" /wrkgrp "C:\AUF\Sécurité.mdw"
which prompt me for a login screen ... I provide user id and pswd ...
everything works fine after.

Now, my question is:
HOW TO RUN THAT SAME COMMAND IN A BATCH FILE AND PASS AUTOMATIQUELLY USER /PSWD WHITOUT MY INTERVENTION ?


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

You need to add the user and password switches to the end of your
command:

"C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE"
"C:\AUF\AG_Import" /wrkgrp "C:\AUF\Sécurité.mdw" /user <user name> /pwd
<password>

--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQi31IIechKqOuFEgEQIJkQCgsMZhi9SUd+JRY6sq0lLbac UJpQgAn1VG
woyvIH5ViCJ9qjp7mbdgrKfW
=bk71
-----END PGP SIGNATURE-----

Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

25
by: Mike MacSween | last post by:
Yes, I've downloaded and read the FAQ. And searched the archives. I'm just treading a little carefully here because of the caveats about locking myself out of the db forever. Some answers I could...
4
by: Norman Fritag | last post by:
Hi there, I would like to retrieve of a secured database the Username and the group that he / she belongs to, to apply access rights to some button click events, which are accessing forms that...
3
by: wandali | last post by:
When I want to edit a MS Database, I have to run the following command: "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" "\\Server\Directory\File.mdb" /wrkgrp...
3
by: TK | last post by:
Excuse me for multiple posting because I've posted this message to aspnet.security NG but have not got any response yet. I'm building an ASP.NET application works in Forms Authentication mode...
1
by: securedcardss | last post by:
http://card.2youtop.info secured credit card card credit instant secured card cash credit secured card
3
by: HowHow | last post by:
I am using window XP, office 2000. Found out from internet that I can secure my folders in server if I zip and put a password to it. I did. However, when I try to open my Access from that Zip folder,...
2
by: =?Utf-8?B?TWFoZXNoIFJlZGR5?= | last post by:
i have a secured webservice implemented using WSE2.0, also i have added a soap extention to it for removing certain header information. now my problem is, i am not able to access another unsecured...
12
by: godiva | last post by:
Hi, Last week one client had errors caused by another program which led the IT guys to wipe out and rebuild the hard drive on one particular computer. Prior to this happening, the people in this...
4
by: cmrestore | last post by:
Hello all, I am new here but I need some serious help. I spent months getting this office organized and creating a central contact database. This thing has clients, suppliers, the works. It was a...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.