How to? Runs start /w in invisible mode OR run program after exit of another one

Mar 4, 2020

I need to run one program right after exit of another one, i.e. to run backup after I edit file in MSAccess or other program.
For that purpose I run bat file like

start "" /w /max /dc:\bat "C:\Office2003\office11\MSACCESS.EXE" test.mdb
call bsa.bat

It works fine except Windows 7 shows both MSAccess and each its openned table as a separate program/window when I press Alt-Tab. So I can't do much about that but I would like to delete from the list of running windows at least the window for bat files itself. I can run bat file minimised, but that creates even more inconvenience. I don't want to compile bat files into exe file.


1) may be start /w is not the right path altogether/which one is right on ?
2) how to run bat file via cmd or TCC/TCDM so it does not show in the list of openned windows ?

thank you


Scott Mintz
May 20, 2008
Solon, OH, USA
If the goal is to run bsa.bat *after* MSACCESS exits, then get rid of the START command and run it directly.
pushd c:\bat
"C:\Office2003\office11\MSACCESS.EXE" test.mdb 
call bsa.bat

I assume, you run current-approach.btm by double-clicking it from an Explorer window (as opposed to running it from within TCC). That will launch the current BAT handler and run the script - typically something like TCC /C current-approach.bat. That opens the command prompt window which you will see along with the MS Access window.

If you want the script to run in detached state, then you'll need a launcher script.
Create LaunchDB.btm:
detach current-approach.btm

When running detached, a console app cannot access the keyboard, mouse, or display. So your current-approach.btm script can be simplified a little. Since the CLS command is meaningless in a detached script, you can remove the CALL and the CLS commands.
"C:\Office2003\office11\MSACCESS.EXE" c:\bat\test.mdb 
  • Like
Reactions: Sergey Vontsov
Similar threads
Thread starter Title Forum Replies Date
thorntonpg TCC_RT_21\tcc.exe runs tcstart Support 4
M TCC no longer runs after installing TC 17 Support 22
forbin Fixed OSD runs out of resource Support 15
fpefpe How to? Rename runs tree Support 10
vefatica Killing command line FOR which runs a batfile? Support 9
J Take command does not start on Windows 10 Support 3
N for start /b anamoly Support 1
U Can not get/start Take Command gui Support 1
DrusTheAxe START /? is incomplete Support 2
vefatica Start/stop screensaver from TCC? Support 12
S START with title Support 4
vefatica START at 0,0? Support 2
D START /POS versus @WINPOS and @WINSIZE Support 12
vefatica START /elevated and PcaSvc? Support 5
S incorrect message at start Cancel batch job 4START.bat ? (Y/N/A) : Support 1
vefatica START /PGM "name with spaces.URL" fails Support 2
L Peculiarities of how START launches processes Support 15
R How to? START program as top window? Support 2
Peter Murschall v24 IDE/BDEBUGGER won't start Support 9
Dmitry L. Kobyakov WAD Start /pgm "name.htm" works improperly Support 4
Joe Caverly START Dialog usage of %_ variables Support 0
A Fixed [23.0.22]: TCMD crashes shortly after start, TCC keeps running in background Support 6
kb6ojs Want to start TCMD v20 with every Windows 10 bootup Support 3
vefatica START *command Support 5
Per TCC/LE 14 64-bit won't start on Windows 10 Insider Preview 17063 (171213) Support 12
A Fixed (CMD compat) START /D fails to recognize the switch option. Support 3
MikeBaas start /runas - I'd like /netonly Support 2
vefatica Start VIEW with the toolbar showing? Support 5
vefatica Documentation START /AFFINITY Support 0
B how to do in "start" command thing like in tcc.exe Support 1
J directory or folder to start in Support 2
R How to? Not have RT version show on start Support 3
D WAD START /ELEVATED "Title" /PGM "job.btm" Support 6
J How to? Start TCMD with different configurations Support 3
vefatica START /K ... Support 1
vefatica Documentation START /AFFINITY Support 5
vefatica Start TCMD with File Explorer showing? Support 2
Alpengreis WAD Each start/close of TCMD changes my Explorer setting Support 7
WadeHatler Just started getting a message about Cloud Storage every time I start TCC 19 Support 3
Alpengreis Fixed TCMD FileExplorer Start-Directory problem Support 4
vefatica Shortcut/start-up folder nonsense Support 20 Can I start TCC in full screen mode? Support 9
R Unable to start any BTM file from Explorer Support 5
fpefpe How to? Stange start up issue Support 1
M Start "/Elevated" failure... Support 3
vefatica START, CMD vs. TCC Support 0
Steve Pitts Difference in exection with and without START Support 24
rjperrella start /tabna leaves blank windows when running batch scripts Support 10
vefatica Start-up directory for new tabs? Support 7
C OT: Registry OPEN verb to start elevated... Support 2

Similar threads