#1
|
|||
|
|||
open in Tab rather then in new window
Greetings,
Ive go a small question. Ive made an external script (non-CRT) that allows, based on input, to compile a proper vbs. script for CRT and the run it in RUN:<dir>/SecureCRT.exe /SCRIPT %somescript%.vbs It all runs perfectly except for one small thing, every time it opens a new window. Regardless if i do use pre-configured session using /S or not, its new window. Is it possible to make CRT open new tabs, if one already exists. Thanks |
#2
|
|||
|
|||
Hi hellfire,
Thanks for the question. The command-line options available are documented in the Using the Software / Command-line Options chapter in the help file. The specific command-line option you are seeking is "/T". Does this help you accomplish your goal? |
#3
|
|||
|
|||
Thanks, i know that. When i launch CRT like this:
SecureCRT.exe /T /SCRIPT lalala.vbs it tells me i need and IP or Hostname to use /T. And i got them inside script. |
#4
|
|||
|
|||
Hi hellfire,
Thanks for the update. If you are connecting in your script, then you should be using the "/T" protocol specific command-line option in the script as well. Would you post the contents of lalala.vbs? Can you help me understand why you are not using "/T" in the connection string in your script? |
#5
|
|||
|
|||
sure, here you go
Quote:
Last edited by hellfire; 10-29-2012 at 11:03 PM. |
#6
|
|||
|
|||
Hi hellfire,
Thanks for posting the script. Since you are using the ConnectInTab method, you should not need to use "/T" on the command-line. What version of SecureCRT are you using? Can you tell me more about how you are launching your SecureCRT connections? |
#7
|
|||
|
|||
a ConnectInTab was just a try, but it failed for me.
Well, im using an external software to launch CRT when it is needed. Launching parameters: SecureCRT /S lalala.vbs CRT version is 6.5.1 all I need is to prevent CRT from opening new windows and use tabs instead, so, for example, if an external soft launches CRT three times it results in three tabs, not three windows. And i cant find how to make CRT act this way |
#8
|
|||
|
|||
Hi hellfire,
Thanks for the data. I have created a feature request in our SecureCRT enhancement database to add the ability to use /Script alone on the command-line. Should we add this feature, we will let you know. If you would like to be notified directly, please complete and submit the form at the following location: Submit Feature RequestIn the meantime, the best workaround that we have been able to find would be to move the connection out of the script. For example: Will this work for you? |
#9
|
|||
|
|||
Thanks for the reply, it will be very hard to implement due to external software structure, but..i guess its the onl way as I cant make CRT to act like this in _any_case.
Anyway, thanks, waiting for this feature to be implemented. |
#10
|
|||
|
|||
![]()
A hacky work-around could be to make the initial connection to a common place that every one running the script would have access to. (note: that server could even be /TELNET www.google.com 80) -- just anything that can create a connection and let the script run.
The script could then immediately do crt.session.disconnect and continue on with the crt.session.ConnectInTab part of the rest of your script. I was thinking maybe trick it by connecting to 127.0.0.1, but the script doesn't execute until the connection is made. Unfortunately, you can't call crt.GetActiveTab.Close on the initial tab because that's what the script is attached to. |
#11
|
|||
|
|||
Hi gregg,
Thanks for posting the idea. We had the same idea and ran into the same problem using localhost and decided not to pursue any further. Last edited by rtb; 10-31-2012 at 11:58 AM. |
#12
|
|||
|
|||
Quote:
Quote:
![]() |
#13
|
|||
|
|||
Hi all,
I ran some additional tests, and found that using "/SERIAL" should work, and may be more innocuous than using "/TELNET hostname". |
#14
|
|||
|
|||
sure, ill try that too, thanks
|
![]() |
Tags |
launch , tab |
Thread Tools | |
Display Modes | |
|
|