Open & Configure multiple TCC windows on STARTUP

May 28, 2008
5
0
How do I go about Opening & Configuring multiple TCC windows on STARTUP of TC 9.02?

Thanks, Mike
 
Jun 6, 2008
1
0
therealmikenelson wrote:
| How do I go about Opening & Configuring multiple TCC windows on
| STARTUP of TC 9.02?

Go to Options -> TCMD options -> tabs.
--
HTH, Steve

Hi Steve,
I was looking for this solution, I am already doing this but it does not
do as I was expecting. I played with different parameters, at certain point it started working also but I changed something and it stopped working.
Now I see at startup tcmd opens these windows, it flashes briefly and goes away, these never gets attached to the shell container.


Any help is appriciated.

My TCmd.ini file looks as follows.
I have clobbered the user name and password below for Vista UAC.
The C:\Users\sguha\TCmd\tcstart.bat file contains loading of a alias file. alias /r c:\Users\sguha\4nt\alias1.txt

[4NT]
AutoCancel=No
AutoRun=Yes
BatchEcho=Yes
CMDExtensions=No
CopyPrompt=No
DelayedExpansion=No
DelGlobalQuery=Yes
DirJunctions=Yes
DuplicateBugs=Yes
ExecWait=No
HistLogOn=No
LocalAliases=No
LocalDirHistory=No
LocalFunctions=No
LocalHistory=No
LogAll=No
LogOn=No
LogErrors=No
MouseWheel=Yes
NoClobber=No
PathExt=No
Perl=Yes
RecycleBin=No
Rexx=No
Ruby=No
SettingChange=No
SHChangeNotify=No
TCStartPath=c:\Users\sguha\TCmd
UnicodeOutput=No
UnixPaths=No
UpdateTitle=Yes
Win32SFNSearch=No
Wow64FsRedirection=Yes
ZoneId=0
4StartPath=c:\Users\sguha\TCmd
ANSI=Yes
CDDWinLeft=3
CDDWinTop=3
CDDWinWidth=72
CDDWinHeight=16
ColorDir=dll exe com bat cmd : bright red ; c cpp asm java : bright yellow; h hpp def mak : bright cyan; rch rc dlg : bright green; bmp ico msg hlp :bright white;
Editor="C:\Program Files\notepad++\notepad++.exe"
ErrorColors=Red on Black
PopupWinHeight=12
PopupWinTop=1
PopupWinLeft=40
PopupWinWidth=36
StdColors=Bright Green on Black
WindowHeight=0
WindowState=Standard
WindowWidth=0
WindowX=0
WindowY=0
Transparency=255
InactiveTransparency=255
AppendToDir=No
CompleteHidden=No
CompletePaths=No
CursorIns=15
CursorOver=100
DirHistory=2048
EditMode=Insert
FuzzyCD=0
HistMin=0
History=8192
HistCopy=No
HistDups=Off
HistMove=No
HistWrap=Yes
ServerCompletion=Local
AmPm=No
BeepFreq=440
BeepLength=2
CommandSep=&
DecimalChar=Auto
DescriptionMax=512
NTFSDescriptions=No
Descriptions=Yes
EscapeChar=^
EvalMax=10
EvalMin=0
ExpandPseudovariables=Yes
ParameterChar=$
RegularExpressions=Perl
SwitchChar=/
TabStops=8
ThousandsChar=Auto
ProxyPort=80
FirewallType=None
PassiveFTP=Yes
FTPTimeout=180
HTTPTimeout=180
TFTPTimeout=180
MailPort=25
RLocalPort=0
SSLStartMode=0
SSLPort=0
DebuggerTransparency=255
[TakeCommand]
AlwaysOnTop=No
AppendToDir=Yes
CompleteHidden=Yes
CompletePaths=No
IBeamCursor=No
InactiveTransparency=255
ServerCompletion=Local
SingleInstance=No
StatusBarSize=No
StatusBarCPU=No
StatusBarLoad=No
StatusBarDate=No
StatusBarTime=No
Transparency=255
Tray=No
WindowState=Standard
ConsoleBufferRows=5000
LeftAltKey=Yes
LeftCtrlKey=No
RightAltKey=No
RightCtrlKey=No
TabIcons=Yes
Tabs=Top
TabSize=20
TabX=All
DescriptionMax=512
Descriptions=Yes
LinuxSelection=No
MinimizeOnClose=No
MouseWheel=Yes
NTFSDescriptions=No
PathExt=No
RegularExpressions=Perl
SettingChange=No
SHChangeNotify=No
ShowHiddenFiles=No
ShowSysFiles=No
ShowSuperHidden=No
SingleClick=No
ShowExtensions=Yes
StartDirectory=C:\temp
UpdateTitle=No
Wow64FsRedirection=Yes
ZoneId=0
[Debugger]
Docked=0
left=100
top=100
right=780
bottom=500
[Watch]
Name=110
Height=110

[ListView]
Style=1
[Buttons]
B1=0,,TestJava,c:\Users\Sguha\pro\test\java,c:\Users\sguha\TCmd\tcc.exe window "TestJava"
B2=0,,JipBin,c:\java\jip-1.1.1\client,c:\Users\sguha\TCmd\tcc.exe "JipBin"
B3=0,,JipSrc,c:\users\sguha\pro\test\java\jip-src-1.1.1\src\com\tivo\jipviewer,c:\Users\sguha\TCmd\tcc.exe window "JipSrc"
B4=0,,J2eeSdk,c:\java\j2ee5u4\sdk\bin,c:\Users\sguha\TCmd\tcc.exe "J2eeSdk"
B5=0,,BlackJack,c:\users\sguha\pro\test\java\blackjack,c:\Users\sguha\TCmd\tcc.exe "BlackJack"
B6=0,,J2eePetstore,c:\java\j2ee5u4\sdk\blueprints\petstore,c:\Users\sguha\TCmd\tcc.exe "j2eePetstore"
B7=0,,TestPetstore,c:\users\sguha\pro\test\java\javapetstore-2.0-ea5,c:\Users\sguha\TCmd\tcc.exe "TestPetstore"
B8=1,,cd jChartTst,,"cdd c:\java\jfreechart-1.0.9\tests\org\jfree"
B9=1,,Cd KDSrc,,"cdd c:\users\sguha\pro\test\java\kitedance\src\com\kdance\gui"
B10=1,,Cd Matisse GUI,,"cdd c:\users\sguha\pro\test\java\mattisegui\src\com\kdance\gui"
B11=1,C:\temp,Cd MySQL,C:\temp,"cdd C:\java\mysql-5.0.51b-win32\Docs"
B12=1,C:\temp,CdFfoxDload,C:\temp,"cdd C:\Users\sguha\downloads\firefox"
B13=1,,cdSwingSamp,cdd c:\Users\sguha\Documents\books\java\swing\SwingByMarcLoy,"cdd c:\Users\sguha\Documents\books\java\swing\SwingByMarcLoy"
B14=1,,cd AjaxSwing,C:\Programs\AjaxSwing2.0.0,"cdd C:\AjaxSwing2.1.1\bin"
B15=1,,cd SwingL2F,,"cdd C:\Java\l2fprod-common-7.3"
B16=1,,Cd JCharDemo,,"cdd /t c:\java\jfreechart-1.0.9\source\demo"
[Tab1]
Title=j2eeSdk
Command=C:\Users\sguha\TCmd\tcstart.bat
Directory=c:\java\j2ee5u4\sdk
RunAs=yyyy
Password=xxxx
Admin=1
[Tab2]
Title=JipSrc
Command=C:\Users\sguha\TCmd\tcstart.bat
Directory=C:\Users\sguha\pro\test\java\jip-src-1.1.1
RunAs=yyyy
Password=xxxx
Admin=1
[Tab3]
Title=J2eePetstore
Command=C:\Users\sguha\TCmd\tcstart.bat
Directory=c:\java\j2ee5u4\sdk\blueprints\petstore
RunAs=yyyy
Password=xxxx
Admin=1
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,447
88
Albuquerque, NM
prospero.unm.edu
Re: Open & Configure multiple TCC windows on STARTUP

[Tab1]
Title=j2eeSdk
Command=C:\Users\sguha\TCmd\tcstart.bat
Directory=c:\java\j2ee5u4\sdk
RunAs=yyyy
Password=xxxx
Admin=1
[Tab2]
Title=JipSrc
Command=C:\Users\sguha\TCmd\tcstart.bat
Directory=C:\Users\sguha\pro\test\java\jip-src-1.1.1
RunAs=yyyy
Password=xxxx
Admin=1
[Tab3]
Title=J2eePetstore
Command=C:\Users\sguha\TCmd\tcstart.bat
Directory=c:\java\j2ee5u4\sdk\blueprints\petstore
RunAs=yyyy
Password=xxxx
Admin=1

I believe that those Command= directives should contain filenames of executables, not batch files. You can specify a startup batch file (or other command) using the /K option:

Command=c:\bin\tcmd\tcc.exe /k C:\Users\sguha\TCmd\tcstart.bat
 
May 20, 2008
3,515
4
Elkridge, MD, USA
Charles Dye wrote:
| ---Quote (Originally by sguha)---
|
| [Tab1]
| Title=j2eeSdk
| * Command=C:\Users\sguha\TCmd\tcstart.bat*
| Directory=c:\java\j2ee5u4\sdk
| RunAs=yyyy
| Password=xxxx
| Admin=1
...
| ---End Quote---
| I believe that those Command= directives should contain filenames of
| executables, not batch files. You can specify a startup batch file
| (or other command) using the /K option:
|
| * Command=c:\bin\tcmd\tcc.exe /k C:\Users\sguha\TCmd\tcstart.bat*

As Charles wrote, "command" must specify an executable, with optional
parameters. Furthermore, if the executable is TCC.EXE, and there is a
TCSTART program in one of the expected places, it will automatically execute
TCSTART.xxx (where xxx must be BAT, CMD, or preferrably BTM), so you don't
need to specify it explicitly.

Read the HELP topic "autobatch.btm" regarding the search path. Read also
topics "4ntbat.htm" and "batchtype.htm" to see the effect of using .BAT
extension instead of .BTM extension.
--
HTH, Steve
 
Similar threads
Thread starter Title Forum Replies Date
Phileosophos Is there any way to open the Take Command options dialog from the command line? Support 8
D Open Windows 10 Photos app from command line Support 11
R How to? Open Take Command at current folder Support 7
D everything /o does not open the option dialog Support 4
A How to? How do you launch TCC/LE using the already-open instance? Support 5
David Wilbanks How to make new tab open in same directory as previous tab? Support 4
C OT: Registry OPEN verb to start elevated... Support 2
epement Fixed Row/Col status bar flips continuously when 2 files open Support 4
S How to? Use Forum "feedback" button to open in a new tab Support 3
Mordachai Fixed Closing TCMD while IDE + Help Open = Crash Support 7
D How to? V15.00.30 -(help!) - Floating view windows don't open Support 1
C How to? Shell Window remains open Support 6
vefatica Open properties for .LNK? Support 16
Charles Dye IFTP, current directory, open new connection Support 0
E WAD Open handle on USB drive in TCC Support 3
R How to? can not open jvm.cfg help Support 2
fishman@panix.com Is there a way to get the HELP screen to open maximized? Support 4
daniel347x Open a bash shell in Take Command? Support 2
MBaas GUI-Tool for "File/Open" or tree (for use in batch-files) Support 3
P TCMD 11.0.28 does not open its window Support 15
M open Take Command here right-click? Support 2
CWBillow Context Menu "Open With" Support 10
rps Fixed Configure TCMD/TCC Tabbed toolbar buttons not persistant Support 3
Jay Sage Version 12: No Option to Configure Toolbar Support 2
R TC 11.00.33 - Options/Configure TC/Tabs Support 1
J V10 "Configure tab toolbar" issues Support 3
J Configure SendMail to go through GMAIL as SMTP server Support 10
N Unable to bind multiple keys to the same key mapping directive Support 9
vefatica Console not redrawn in BTM or with multiple commands Support 4
C duplicate files in multiple plugin sites Support 9
kb6ojs ALIAS with multiple commands? Support 9
vefatica How do I do this with a multiple-line DO? Support 7
Joe Caverly Multiple Text Searches at once using FFIND or TPIPE Support 4
R How to? Append files in multiple subfolders using copy? Support 8
N multiple command alias and redirection Support 0
B Can copy command concatenate multiple mp3 files Support 2
C INSTALLED returnes same program multiple times Support 14
M Delete multiple Alternate Datastreams Support 5
D What are the rules for detecting multiple versions of TC on a machine? Support 7
C FOLDERMONITOR inactive with multiple /I Support 1
C WAD VIEW print multiple files - switches fail Support 10
vefatica Multiple instances of help file Support 3
J How to? Array sort according to multiple keys Support 3
Alexander WAD The number of files and dirs are multiplied when using multiple wildcards Support 6
Jay Sage Version 17 Installer Leaves Multiple Copies of ShrAlias Support 48
R Fixed Internal ZIP command fails to process multiple files Support 3
M How to? PDir on multiple wildcard patterns... Support 2
A WAD Dir daterange + multiple path wildcards crashes tcc Support 2
T How to? Using FOLDERMONITOR 1 event causes multiple trigger(ing)s Support 8
samintz How to? Pull out multiple matching lines Support 5

Similar threads