• How to Close a Batch file StartBP15.bat

    Home » Forums » AskWoody support » Windows » Windows 7 » Questions: Windows 7 » How to Close a Batch file StartBP15.bat

    Author
    Topic
    #494087

    Running Windows 7

    I have the following batch file that I run from the desktop and it works OK

    The problem I’m having is that is leaving two tasks open at the bottom of the screen, 1 for the batch file and 1 for the Access program once loaded

    How do I alter this batch file so the task for the batch file is closed once Access is loaded?

    del C:NbsA2kFe*.ldb
    COPY F:appsnbsbuildMast_prgBUILD15.MDB C:NbsA2kFeBuild.mdb
    COPY “F:appsnbsbuildMast_prgUD_DbPrg.MDB” C:NbsA2kFe
    COPY “F:appsnbsbuildMast_prgstrStorage.dll” C:NbsA2kFe
    COPY “F:appsnbsbuildMast_prgDynaPdf.dll” C:NbsA2kFe

    “C:Program Files (x86)Microsoft OfficeOffice15MSACCESS.EXE” “C:NbsA2kFeBuild.mdb” /cmd “CNFBLD”
    exit

    Viewing 2 reply threads
    Author
    Replies
    • #1447066

      You should be able to use the “Start” command to launch Access in a separate window.

      In a DOS Window type: start /?
      This will show the following description and much more detail.

      Starts a separate window to run a specified program or command.

      START [“title”] [/D path] [/I] [/MIN] [/MAX] [/SEPARATE | /SHARED]
      [/LOW | /NORMAL | /HIGH | /REALTIME | /ABOVENORMAL | /BELOWNORMAL]
      [/NODE ] [/AFFINITY ] [/WAIT] [/B]
      [command/program] [parameters]

    • #1447068

      START msaccess with a null title, which should close the BATch file as soon as msaccess runs..
      As in
      start “” “C:Program Files (x86)Microsoft OfficeOffice15MSACCESS.EXE” C:NbsA2kFeBuild.mdb /cmd CNFBLD

      You should only need double-quotes round parameters which contain a blank, so I’ve removed those which I think may be unnecessary. But don’t leave out the two double-quotes after start!

      BATcher

      Plethora means a lot to me.

    • #1447080

      Wow, what a needle in the haystack, thank you both

    Viewing 2 reply threads
    Reply To: How to Close a Batch file StartBP15.bat

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: