> i need to launch a bat-file, because my cli application won't run unless it's executed from within it's own directory.
> your post is useless - it doesn't explain how i open it in TABS...
Perhaps I'm not understanding your problem, so please educate me if I
misunderstand.
I made a batch file called test.bat that changes drives and folders to
where a custom program resides. I think this is similar to what you
are trying to do.
I clicked Options \ Configure Tab Toolbar...
I selected an empty tool box.
I set the button label to "Test"
I selected "Send to the current tab"
I put the next line into the Command box, including all quotes just as-is.
"start /tab %comspec% /c d:\test.bat" enter
I Clicked OK to get back to the main window.
When I click the new "Test" tool, it does start a new tab with my
program running in the custom folder.
If this didn't solve your problem, because I've misunderstood, could
you please give detailed examples of each box to check, fill in, etc.,
and I'll try to reproduce your issue and give you the best advice I
can. Showing the contents of your batch file may help.
In reading some of your posts, it seems you want just the batch file
to run in a tab, but unlike programs, Windows itself can not run a
batch file. Batch files are always interpreted by a shell, like
CMD.EXE or COMMAND.COM or 4NT.EXE or TCC.EXE or other available
choices.
In the past, when you were already running a shell like 4NT, you can
then type in the name of a batch file. Since your shell knows what to
do when a batch file name is given, the shell then interprets the
commands in the batch file and you got what you want. When you use
Windows Explorer and double-click a batch file you'll see that it
instead launches CMD.EXE in a box. Try making a batch file that just
says PAUSE and you'll see what I mean.
Just like Windows can only run programs, TCMD needs some program
running in each tab. If you want your batch file to be interpreted by
a shell, as in the past, use the method I've shown here and others
have shown or hinted at, and it will do just what has always been
done.
I hope I've helped.
--
2008 Fridays: 4/4, 6/6, 8/8, 10/10, 12/12 and 5/9, 9/5, 7/11, 11/7.
Next year they're Saturday.
Measure wealth by the things you have for which you would not take money.