VanDyke Software Forums

Go Back   VanDyke Software Forums > Scripting
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 04-06-2010, 04:38 PM
Dalien51 Dalien51 is offline
Registered User
 
Join Date: Oct 2007
Posts: 3
Automate Print File Name

Secure CRT version 6.1.0.....

I use the command:-

crt.screen.print

which when run during a script will open the file saveas dialogue box....is it possible to automatically provide the file name so i am not prompted?

something like:-

crt.screen.print ("c:\test.tif")

would be great but does not work!

any help most appreciated.

Dalien51
Reply With Quote
  #2  
Old 04-06-2010, 05:48 PM
miked's Avatar
miked miked is online now
VanDyke Customer Support
 
Join Date: Feb 2004
Posts: 1,314
Hello Dalien51,

It sounds like SecureCRT is trying to print to a file and you're being prompted in a "Print to File" window for the Output File Name, but you would prefer that the Output File Name entry box be filled with a name that you can set. Is this correct?

The filename you list in your example is test.tif, and .tif suggests an image file. I'd like to make sure we understand your overall goal.

Would you prefer to print to a printer rather a file?

Can you tell us a little about your overall goal and what you're wanting to do?
__________________
Michael Decker
VanDyke Software
Technical Support
http://www.vandyke.com
Reply With Quote
  #3  
Old 04-07-2010, 02:34 AM
Dalien51 Dalien51 is offline
Registered User
 
Join Date: Oct 2007
Posts: 3
Automate Print File Name

Yes I want to send the output to a print file.

I have a script which will loop through hundreds of addresses so want to automate the file naming.

Dalien51
Reply With Quote
  #4  
Old 04-07-2010, 09:20 AM
miked's Avatar
miked miked is online now
VanDyke Customer Support
 
Join Date: Feb 2004
Posts: 1,314
Thanks for confirming. SecureCRT does not currently provide a mechanism for specifying the filename. However, I've added a feature request entry to our database so that this can be considered for implementation in a future release. If we add the ability to specify a filename we'll post a follow up message to this forum thread. If you'd also like e-mail notification, please let us know and refer to forum thread 5441.
__________________
Michael Decker
VanDyke Software
Technical Support
http://www.vandyke.com
Reply With Quote
  #5  
Old 04-07-2010, 11:52 AM
jdev's Avatar
jdev jdev is offline
VanDyke Customer Support
 
Join Date: Nov 2003
Location: Albuquerque, NM
Posts: 303
Quote:
Originally Posted by Dalien51
Yes I want to send the output to a print file.

I have a script which will loop through hundreds of addresses so want to automate the file naming.

Dalien51

Dalien51,

What type of information are you trying to "print"?

The results of a command?

The contents of the SecureCRT screen?

I'm wondering if what you're trying to do can be done without even using printing, and instead, just simply capturing the results of a specific command to a file (the name of which you can programmatically set from within a SecureCRT script).

For example, does this information in the SecureCRT Scripting Manual (Chapters 4 and 7 in particular) help provide you with some ideas as to how you might be able to accomplish your goal of saving data from a remote machine to a file from within a SecureCRT script?

--Jake
__________________
Jake Devenport
VanDyke Software
Technical Support
http://www.vandyke.com/support
Reply With Quote
Reply


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

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

vB 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 07:05 AM.


© copyright 1995-2010 VanDyke Software, Inc.