Batch files

Member_2_5230414
Member_2_5230414 used Ask the Experts™
on
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
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

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"

Open in new window


Hope that helps

Priz

Author

Commented:
That does help

what would be the command to open Extra! ?

Commented:
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"

Open in new window


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

Priz

Commented:
just curious... In your next question you use MY answer, i.e. sTART commands....

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial