Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Secure Shell

Reply
 
Thread Tools Display Modes
  #1  
Old 11-01-2006, 06:15 PM
samoki samoki is offline
Registered User
 
Join Date: Jun 2006
Posts: 24
How can I use wscript root property

In WSH,I can use WscriptFullName property to get script file's path,but how can I use it in script for scurecrt or how can I get my script's path in securecrt.

Another,how can I use script transfer input key "CTRL+C ".I use ".send chr(7)",but I don't know if it can work.

If can give me some idea,thanks.
Reply With Quote
  #2  
Old 11-01-2006, 09:42 PM
jdev's Avatar
jdev jdev is offline
VanDyke Technical Support
 
Join Date: Nov 2003
Location: Albuquerque, NM
Posts: 1,096
Quote:
Originally Posted by samoki
In WSH,I can use WscriptFullName property to get script file's path,but how can I use it in script for scurecrt or how can I get my script's path in securecrt.
Hello samoki,

Currently some WScript.* functions are not available from within SecureCRT scripts, as explained in this earlier post:
http://forums.vandyke.com/showpost.p...64&postcount=3
As Teresa explained in a previous post in another forum thread earlier, the ability to retrieve the full path to the script being run through SecureCRT is still under consideration for possible inclusion in a future version of SecureCRT. If you'd like to be notified via e-mail if this functionality becomes available, please send e-mail to support@vandyke.com.


Quote:
Originally Posted by samoki
Another,how can I use script transfer input key "CTRL+C ".I use ".send chr(7)",but I don't know if it can work.
With respect to your question about how to 'transfer input key "CTRL+C"', are you trying to copy text to the clipboard, or are you attempting to send an ASCII Ctrl+C character to the remote machine?

If you are attempting to send a Ctrl+C character to the remote machine, then using crt.Screen.Send Chr(3) would be the correct way to do it. Chr(7), however, would be equal to a Ctrl+G character.

There is an example function that you might be interested in that shows how you can simplify the process of sending control characters in general in another forum thread:
http://forums.vandyke.com/showpost.p...40&postcount=2
On the other hand, if you are attempting to copy text selected within the SecureCRT terminal window to the Windows Clipboard, use the following line of code:
crt.Screen.SendSpecial "MENU_COPY"
Does this information help to answer your question about sending Ctrl+C?

--Jake
__________________
Jake Devenport
VanDyke Software
Technical Support
YouTube Channel: https://www.youtube.com/vandykesoftware
Email: support@vandyke.com
Web: https://www.vandyke.com/support
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 04:46 AM.