Computing.Net > Forums > Disk Operating System > Close Batch Window

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Close Batch Window

Reply to Message Icon

Name: sabloomer
Date: September 12, 2006 at 13:37:52 Pacific
OS: XP Pro
CPU/Ram: x
Product: x
Comment:

I have tried to look over the site before I post my question. http://www.computing.net/windowsxp/... had the same problem, but I couldn't find an answer, so here it goes...

I have the following batch file

echo off
call "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.exe" "C:\MyAdp.ADP"
EXIT

I can not get the window to close when done. I have tried EXIT /B and EXIT /B 0 as suggested on some site. I have also looked for the "close on exit" property for the batch file, but can not find it. Can anyone help?

thanks,

sabloomer



Sponsored Link
Ads by Google

Response Number 1
Name: IVO
Date: September 12, 2006 at 14:25:09 Pacific
Reply:

Well... this has absolutely nothing to do with a DOS question, however to get what you want code

Echo Off
Start ""- "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.exe" "C:\MyAdp.ADP"
Exit

By the way Exit may be omitted.


0

Response Number 2
Name: IVO
Date: September 12, 2006 at 14:28:50 Pacific
Reply:

Sorry

Start "" "C:\Program Files etc....

the - was a typo.


0

Response Number 3
Name: sabloomer
Date: September 13, 2006 at 09:49:31 Pacific
Reply:

IVO -

I was worried about posting this in the wrong forum, the post I mentioned above suggested the DOS forum. Sorry.

This works like a charm, thank you for the help!


thanks,

sabloomer


0

Response Number 4
Name: jboy
Date: September 13, 2006 at 16:50:16 Pacific
Reply:

"the post I mentioned above suggested the DOS forum."

All well and good - but incorrect, and 4 years old(!)

Top of the DOS forum page sports a brief description, apparently skipped by many:

This forum is for all Standalone versions of DOS, not the "DOS" prompt contained inside later versions of Windows.

Diplomacy is the art of saying 'Nice doggie!'... till you can find a rock


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Close Batch Window

Close dos window with batch www.computing.net/answers/dos/close-dos-window-with-batch/5597.html

How to Close Dos windows www.computing.net/answers/dos/how-to-close-dos-windows-/4906.html

Close Win Program with a Batch File www.computing.net/answers/dos/close-win-program-with-a-batch-file/13949.html