# Batch files

Im trying to open i file in my zdrive but it just seems to opens the command prompt to show the below.

I have check the file work in run and it opens fine.

What am i doing wrong?

untitled.bmp
###### Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Commented:
You need to start the application with Access (assuming that the .mdb at the end is not someone's initials).  Try using:

MSACCESS "z:\support\products\cue\files that are updated\customer support users3.mdb"


Hope that helps

Priz
Author Commented:
That does help

what would be the command to open Extra! ?
IT ConsultancyCommented:
Are you by any chance using

START "z:\support\products\cue\files that are updated\customer support users3.mdb"

If so there is an IMO stupid part to START.  The first part in "" is the TITLE of the window so:

START C:\somefile.mdb  works OK
START "C:\some file.mdb" opens a cmd.exe prompt with title of c:\some file.mdb
START ""  "C:\some file.mdb"  opens the MDB!

Steve
Commented:
Not sure what Extra! is ... but all you need to do is find the executable and put the full path to it, if the path contans spaces you need to wrap it in quote marks:
"C:\Program Files\Vendor\Application\extra.exe" /arguments "Z:\path\to\any\file\that\needs\to\be\opened"


If Extra! is au auto-complete replacement for Excel then you just use the word EXCEL instead of MSACCESS in my previous example.

Priz

Experts Exchange Solution brought to you by