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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing variables to the Toolbar

Status
Not open for further replies.

concho2

Programmer
Feb 24, 2003
2
US
Need a way to pass the system variable “$MISC” to the toolbar. I am using ProComm 4.8, modem dialing directories as well as telnet access on a Windows 2k Pro OS. Depending on which entry is selected from the directory would automatically populate the miscellaneous field. This would then be passed to a windows application written in C#, PERL, TCL, or VB.NET on a command line.
Example tools bar button would launch:

C:\JSites\JSitesApp.exe SiteNocTrack -c $MISC
where $MISC would contain info associated with the selection in the dialing directory.

Any help or suggestions would be helpful

Concho_2
 
You could use the putenv command to place the value of $MISC in an environment variable that could then be read by your application. I have seen some odd behavior with putenv in the past (I think 95/98 if I recall correctly), but this is the only solution I can think of off the top of my head, other than writing the value to a fixed text file that your application could read the value of $MISC from.
aspect@aspectscripting.com
 
Knob, You got me on the right track, Thanks. Might need some guidance on other ProCom/Aspect related issues later on. Nice to know there are folks ready to help.


;TSS ProComm NocTrack launcher
;lonnie.montgomery@verizon.com
;02.28.03
;*****************************************************************************
;* *
;* This script will launch the NocTrack ticket application with the *
;* "MISC" variable set to the value listed in the miscellaneous field of *
;* the loaded from the dialing directory. Used via the "tools" button. *
;* *
;*****************************************************************************
proc main

;/declare variables/

String SMisc = ""
String AppName = "C:\JSites\JSitesApp.exe"
String Filename = ""

;/get misc string from dial entry/

strcpy sMisc $MISC

;/form string to execute/

Strfmt Filename "%s SiteNocTrack -c %s" AppName SMisc

; Execute the chosen Aspect

run FileName

endproc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top