![]() |
| The AccuTerm forum has moved. Go to community.rocketsoftware.com to register for the new Rocket forum. |
|
Post Reply
|
| Author | |
JTeter
Newbie
Joined: July 14 2009 Location: United States Status: Offline Points: 13 |
Post Options
Thanks(0)
Quote Reply
Topic: Terminal session variablesPosted: November 20 2017 at 3:52pm |
|
We have written a quick utility to use in script that captures screen sessions. One of the variables that we are setting is the path to which the output is written. Currently, we are writing as "H:\AccuTerm\Capture\somefile.txt". Since the location for captures, downloads, etc. are set in the session configuration, is that available as a variable that can be referenced in setting this path? For instance, I could put it in my script as "%ATCAPTURE%\somefile.txt"
Thanks, in advance!
|
|
![]() |
|
PSchellenbach
Admin Group
Moderator Joined: December 15 2003 Location: United States Status: Offline Points: 2150 |
Post Options
Thanks(0)
Quote Reply
Posted: November 21 2017 at 9:51am |
|
Hi Jeff -
The default capture directory is available as the DefaultCaptureDir property of the Session object. Try something like:
The "On Resume" is there so that if GetAttr() fails, the script will continue, and X = 0 will ensure that you are testing a good value. 16 is the bit for Directory in the attribute returned by GetAttr(). Thanks, Pete |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |