By registering with us, you'll be able to discuss, share and private message with other members of our community.
SignUp Now!.BAT and .CMD script files are read line by line, with the file being closed and reopened each time (this allows for the now-obscure feature of self-rewriting scripts, and in the Dos/Command.com days allowed installing TSRs), while .BTM script files are read once into memory (BTM stands for "Batch To Memory; TCC still has to old LoadBtm command). This yields a difference in speed, which could explain the difference in behavior, because, as Charles Dye points out, the process may not have disappeared completely from the system at the time PsKill returns.
I have the btm file on my desktop. It works under these conditions 1) if I open a tcmd window and then run the btm from the commandline or 2)if I right click the icon and select open with TCC. If I just click on the btm or right click and select open with TCMD, , TCMD opens , and stays open. The btm does not run. I've added delays and echo statements, so I'm sure it does not run.