running a program from cmdline versus in batch file

Jun 3, 2008
Temecula, CA
I have a batch (.btm) file where it does some work and then runs an executable. When it starts the program, the batch file pauses until the program exits. However, if I run that same program directly from the command line, it starts the program and immediately returns my prompt. Any idea what's going on? (The desired behavior is that starting the program in the batch file would immediately resume operation within the batch file.)

In case it matters, the program is "C:\Program Files (x86)\Roxio\OEM\Creator Classic 12\Creator12OEM.exe". No command line parameters, no 'start' in front of it, or any other funny business.

Charles Dye

Super Moderator
Staff member
May 20, 2008
Albuquerque, NM
To start an application without pausing the batch file, use the START command. There's an .INI directive if you want to make the command line work the same as batch files in this respect -- see HELP WAITING -- but you probably don't really want that.
Similar threads
Thread starter Title Forum Replies Date
MickeyF running program from script and (not) returning to script Support 12
J 4NT Error when running 'system' from a program to execute a .BTM Support 3
vefatica Running services.msc? Support 1
gentzel Directory stack empty when running TCEXIT? Support 9
A Fixed [23.0.22]: TCMD crashes shortly after start, TCC keeps running in background Support 6
J Error running Python at command line Support 9
Peter Murschall Uninstall CMDEBUG is not running Support 3
T Fixed IDE locks up if edit window for running batch is closed Support 6
C Running PowerShell_ISE in a Tab Support 7
B How to get window status of a running app Support 3
rconn News Website & Forums now running PHP 7 Support 0
D Running v19 breaks v18 Support 1
vefatica JUMPLIST item when pinned TCMD isn't running? Support 0
B Batch file won't run if there is already an instance of TC 17 running Support 9
rjperrella start /tabna leaves blank windows when running batch scripts Support 10
T Fixed TCC 17: Error running Chocolatey Package Manager Support 3
vefatica Caption when running elevated? Support 4
C Determine process svchost is running Support 13
F Minimising the command window running from a batch file Support 19
D How to? Problem running Mercurial with Araxis Merge Support 3
vefatica Running TCMD's help on the services desktop Support 0
H Ruby - Running External Ruby script crashes TCC Support 11
J TC12 Win7 console, running gawk scripts Support 0
M Running a batch file at Windows startup... Support 8
vefatica Browser doesn't start while IDE is running Support 12
J Crash in 12.00.27: Running any git command from Git for Windows Support 10
nikbackm Running several TCMD versions side-by-side - config files Support 7
R No Error Message when running mklink as limited user Support 3
B Installed/Running in Windows 7? Support 3
mscheuner Running one tab as Vista admin - ERROR Support 1
deleyd command that launches batch file running TCMD? Support 6
p.f.moore Running another batch file without CALL Support 7
C Add link to ewriter help to program group... Support 3
H Behavior change re piping a string to a Java program Support 1
S How to? Runs start /w in invisible mode OR run program after exit of another one Support 3
W Starting program for word to pdf conversion (difference cmd and tcc) Support 13
MickeyF Why doesn't my python program get executed without specifying its path? Support 2
R How to? START program as top window? Support 2
M "less" program that works in TC 18 Support 12
C INSTALLED returnes same program multiple times Support 14
C Recommend a Print program Support 1
C tcmd.ini not loading from program dir? Support 5
Joe Caverly Determine if program started from command prompt Support 2
C WAD TCC: (Sys) C:\Program Files\JPSoft\TCMD17\tcc.exe is not a valid Win32 application. Support 6
C Win7 Program Data.... Support 2
M How to? Start a program on log on elevated abovenormal Support 5
MickeyF how to determine which program will execute a file Support 10
D New 64-bit install goes to Program Files x86 Support 3
M How is this program found? Support 9
A How to? Run a TCC command from external program Support 2

Similar threads