> I don't believe it's possible to do using a Batch file. You might be able to
> use VBScript to do it, by Automating Access, but Batch files just don't have
> that sort of capability.
> > I don't believe it's possible to do using a Batch file. You might be able to
> > use VBScript to do it, by Automating Access, but Batch files just don't have
[quoted text clipped - 5 lines]
>
> How is it then the OS does it?
The OS is capable of doing Automation. As I indicated, VBScript should be
capable of doing this as well.
On the other hand, this is a rather unusual requirement you have. Maybe if
you explained why you're trying to do this, someone can suggest a better
approach.

Signature
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
Albretch - 29 Aug 2004 09:57 GMT
> The OS is capable of doing Automation.
That any code snippet doing what the OS does should as well
> As I indicated, VBScript should be capable of doing this as well.
SHould I then demand from users to have installed VBScript?
> On the other hand, this is a rather unusual requirement you have. Maybe if
> you explained why you're trying to do this, someone can suggest a better
> approach.
Exactly as I said in my first post and why is that so unusual?
Douglas J. Steele - 29 Aug 2004 12:05 GMT
Your original post does not say why you had this need, it only says what you
are trying to do. Wanting to be able to create a database from outside of
Access is certainly not a common requirement. Typically, if you need a
database, it's because you're going to use it in conjunction with an
application. That application would have the "responsibility" of creating
the database for its use.

Signature
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
> > The OS is capable of doing Automation.
> That any code snippet doing what the OS does should as well
[quoted text clipped - 6 lines]
> > approach.
> Exactly as I said in my first post and why is that so unusual?
Albretch - 30 Aug 2004 13:31 GMT
I never said I wanted to created a MS Access DB in a machine where
people don't have access installed. Quoting myself:
// - - - - - - - - - - - - - - - - - -
. . . Inside of a folder you can get its context right clicking on it
and select
'New -> MS Access DB', so there should be a way to do in a batch/OS
command without angaging a VBA macro. Am I right?
The batch file should accept a string with the folder/file name (and
optionally, certain user with her password) and it should work on an
OS level for the version of access users have instaled in their local
boxes.
// - - - - - - - - - - - - - - - - - -
What I said was that I wanted to created a MS Access database -via a
batch file- (that would certainly call MS Access via the OS).
I still don't get why this requires such a big deal of extra
explanations
I know there must be a way