Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remote Terminal Paths

Status
Not open for further replies.

aaiqbal

Programmer
Sep 15, 2003
26
US
Hi Again,
I'm not having problems opening a new window or running a script in that window. However, I'm trying to change the paths of that window dynamically from my window. I can change the paths in my own window with commands like
"set capture path ..." or "set dnldpath ..." and I would like to do the exact same thing in the remote window. The reason for this is based on the test I'm running, the path of that test will be different and the remote window will need the path of the current test, not the last test as it will have. Of course, if I manually change the paths in my window (before running the script) then when the remote window opens up, it too will have the same paths. I just don't want to have to do that everytime. Is there a way to do this? It seems as though the ASPECTCMD only supports the commands knob listed above and no others. This means, apparently, I can't use it to set the paths of the remote window. I did attempt to use:
ddeexecute "set capture path ..." and there were not compilation errors but that didn't really seem to work either since the paths were still the same as before in the remote window. Thanks for looking at this and any help would be appreciated.
 
If the window you refer to as your window is a procomm session running an aspect script and the new window is a procomm window also running a script and they are on the same machine or both have access to a shared directory one option would be:

Setup a INI formatted text file
Use profilewr command to write to the ini file from your window
Use profilerd command to read from the ini file from the new window.

You can have your window control several 'new windows' with a single INI file by having a different section of the INI file for each.

The profilerd / profilewr commands provide an easy way to read and write small amounts of data to a file without having to deal with all the bother of opening / closing the file and finding specific data manually.

To be able to do this you just have to look at the script reference for the format of these two commands and look at an INI file such as the HINTS.INI which should be in your aspect directory of Procomm probably.

Hope this helps. DT
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top