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

Automating the start/end of an Attachmate session

Status
Not open for further replies.

flowersr

MIS
Feb 11, 2004
43
US
Hi,

I was given a session file that when I doubleclick it initiates a session to the mainframe which runs a macro to perform the 1st of 2 signons then stops at the 2nd signon screen. I since added code to the macro to do what I want.

Here's what I want to be able to do...

1) initiate the session (which calls its macro) from a BAT file instead of double clicking it

perhaps using code similiar to this

wshshell.Exec(""""C:\Program Files\Attachmate\EXTRA!\Ebrun.exe""" C:\Program Files\Attachmate\EXTRA!\Sessions\xxxxxx.xxx")

2) which will run the macro code called by the session (this step is pretty much written)

3) once macro is done close both macro and session that called it so that nothing is left on the desktop.

Has anyone done this and can provide a link or instructions in accomplishing this?

Thanks,
Rich
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top