I have a quiestion concerning a .bat of mine and I hope this is the right spot to post it:
My task is the following: I need to write a batch that starts an Access database and processes a parameter to it so that a module I created can catch it as the following:
Code: Select all
If Command = "test" Then
But the batch has to work with relative paths and that's where the problems come in: it all works fine like this:
Code: Select all
"C:\Program Files\Microsoft Office\Office11\Msaccess.exe" "C:\Program Files\Subdirectory\business.mdb" /cmd "orders"
but as soon as i try it like that:
Code: Select all
".\business.mdb" /cmd "orders"
the database opens up (it's always in the same folder) but the parameter is not processed and the module does not work!
I really need help here, thanks in advance!!
Best regards,
Patrick