Altering the DNS path / ODBC using a batch file or similar?
- From: "Pheasant PluckerŪ" <pheasant@xxxxxxxxxxx>
- Date: Thu, 12 Apr 2007 22:44:23 +0100
Hi there,
I wonder if some kind soul could help me please?
We have a custom application that uses an Access.mdb file and checking the
DSN shows everything pointing to the correct place and everything works fine
as expected.
However we wish to run our application to parse & use a different .mdb file
(or in fact up to two more depending upon requirements) and to save the
hassle of renaming the files in question I want to create 3 different batch
files that will alter the DSN pointer and then run our application.
Unfortunately the application has no command line syntax where you could
specify the name of the .mdb you wish it to open...it seems to depend upon
the System DNS to tell it where the file is located and what it is called.
I had in mind a simple sort of batch file along the lines of;
change_DSN_to_point_to_alternative_file
Run application
In fact we would need to create 3 different batch files in total - one for
each .mdb that we wish our program to open.
Is this even possible?
Maybe there is a program or other way of achieving this?
Any hints/tips would be most gratefully welcomed.
--
Thanks & regards,
-pp-
.
- Follow-Ups:
- Re: Altering the DNS path / ODBC using a batch file or similar?
- From: Mary Chipman [MSFT]
- Re: Altering the DNS path / ODBC using a batch file or similar?
- Prev by Date: Re: NT authentication
- Next by Date: Re: Altering the DNS path / ODBC using a batch file or similar?
- Previous by thread: NT authentication
- Next by thread: Re: Altering the DNS path / ODBC using a batch file or similar?
- Index(es):
Relevant Pages
|
|