Call Windows Execution EXE file from T24

763 views
Skip to first unread message

Phuong Do Duc

unread,
Mar 8, 2008, 1:28:50 AM3/8/08
to jB...@googlegroups.com
Hi all,
 
We r using T24 (AIX platform). In my local Computer - Windows XP SP2, I have an execution file created by VB6, named TEST.EXE, stored in  C:\TEMP\
 
From T24, how can I call to this TEST.EXE file ?
 
 
Thank you.

foxy.md

unread,
Mar 8, 2008, 5:23:50 AM3/8/08
to jBASE
As far as I know - yes, you can.
From jBasic subroutine you have to call a VB script, created with
SCRIPT.DESIGNER.
And from the script call Execute to execute your TEST.EXE

Jim Idle

unread,
Mar 8, 2008, 11:34:41 AM3/8/08
to jB...@googlegroups.com

You just need a subroutine that does:

 

EXECUTE “TEST.EXE”  ;* When C:\TEMP is in your PATH

 

EXECUTE “C:\TEMP\TEST.EXE” ;* When it isn’t

 

T24 might have something where you can defined a program to be called on certain events, but I don’t know that.

 

Jim

Simon Verona

unread,
Mar 8, 2008, 12:06:13 PM3/8/08
to jB...@googlegroups.com

I *think* that the OP wants to run an executable on his local desktop pc from a T24 Application running on AIX on the fileserver....  I know nothing about the T24 front end but it would presumably need to provide some way of running a local application?

 

Simon

 

 

From: jB...@googlegroups.com [mailto:jB...@googlegroups.com] On Behalf Of Jim Idle
Sent: 08 March 2008 16:35
To: jB...@googlegroups.com
Subject: RE: Call Windows Execution EXE file from T24

 

You just need a subroutine that does:

 

EXECUTE “TEST.EXE”  ;* When C:\TEMP is in your PATH

 

EXECUTE “C:\TEMP\TEST.EXE” ;* When it isn’t

 

T24 might have something where you can defined a program to be called on certain events, but I don’t know that.

 

Jim

 

From: jB...@googlegroups.com [mailto:jB...@googlegroups.com] On Behalf Of Phuong Do Duc
Sent: Friday, March 07, 2008 10:29 PM
To: jB...@googlegroups.com
Subject: Call Windows Execution EXE file from T24

 

Hi all,



Click here to report this email as spam.

 

Simon Verona.vcf

Phuong Do Duc

unread,
Mar 9, 2008, 8:05:48 AM3/9/08
to jB...@googlegroups.com
Yes, it like Simon Verona said.
 
I've already done with VB Script. I have a VB Script within T24 named TEST.SCRIPT1, To call this Script, from T24 Command Line, I type SPT TEST.SCRIPT1, this Script will run.  It is very easy.
 
1 - I want to know How to call to a Script from a SubRoutine?
2 - How to write a SubRoutine to call to an EXE file from my local Hard disk by SubRoutine?
 
You know, Subroutine is from AIX Server, not in my local computer.
 
Jim's solution did not success, It can not run, I've tried it.
 
Regards.

 
2008/3/9, Simon Verona <si...@dmservices.co.uk>:
This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com



Simon Verona

unread,
Mar 9, 2008, 8:27:58 AM3/9/08
to jB...@googlegroups.com

I know zero about T24, but you will need to see how the SPT command is running the vbscript – there must be something in the utlity that transfers the command from the server to the client...  Once you ‘ve found this out then it should be easy to see what you need to do...

 

As to how you do this, I’m hoping that there is somebody around who *does* know T24 and who can comment..

 

Simon

 

Simon Verona.vcf
Message has been deleted

x

unread,
Mar 9, 2008, 4:01:40 PM3/9/08
to jBASE
There are 2 solutions I can think of.

1) If you are running a terminal emulator on your local PC, not the
Windows default telnet or Hyperterminal as they call it, most likely
you have a facility to execute a client program.
The following details are for Accuterm and wIntegrate.
For reference, SOH=CHAR(1), STX=CHAR(2), CR=CHAR(13), ESC=CHAR(27).

For Accuterm emulator is quite simple: PRINT ESC:STX:'<':command:CR:

For wIntegrate emulator is far more complicated, the example below
executes a PC resident BAT file with no arguments.

PRINT ESC:SOH:'Global HScript=BSToAscii(`Dialog RunProgram\rSet
Filename = "C:\\TEST.BAT"\rSet Arguments = ""\rInvoke`)':CR:

PRINT ESC:SOH:'Execute HScript':CR:

For detailed info look for the wIntegrate host routines WIN.PCRUN and
WIN.PCSCRIPT.

2) Unless you need instantaneous response, you can create a common
file where both T24 and your local PC have full rights then make your
PC application pool the file and execute whatever request is getting
from the host.

Lucian

Phuong Do Duc

unread,
Mar 11, 2008, 12:16:16 AM3/11/08
to jB...@googlegroups.com
Can you explain more clear 1st solution ???
 
Give me some example please.
 
Thank you.

 
2008/3/10, x <lucia...@yahoo.com>:

x

unread,
Mar 11, 2008, 10:25:30 AM3/11/08
to jBASE
You should check the documentation of your emulator.
As an example, if you were to use Accuterm and you want to initiate
your TEST.EXE from within a jBASE (T24) program, then the program
should have the statement:
PRINT ESC:STX:'<C:\TEMP\ TEST.EXE':CR:
and Accuterm will start it on your local PC.
Try it first with something simple such as PRINT ESC:STX:'<DIR':CR:

Lucian

Phuong Do Duc

unread,
Mar 11, 2008, 10:28:46 AM3/11/08
to jB...@googlegroups.com
Oh, but I dont have any Accuterm document now. I've never seen it before. If you have, can you share to me?
 
Thanks and regards.

 
2008/3/11, x <lucia...@yahoo.com>:

x

unread,
Mar 11, 2008, 10:36:25 AM3/11/08
to jBASE
> Oh, but I dont have any Accuterm document now. I've never seen it before.

Accuterm,
Help
Contents
AccuTerm 2K2 Reference
AccuTerm Programming


Dick Thiot

unread,
Mar 11, 2008, 5:03:09 PM3/11/08
to jB...@googlegroups.com
I don't think that he has Accuterm.  Phong, Accuterm is a terminal emulation program.  Does Temenos provide a standard terminal emulation program with T24?  That is what you need the doucmentation for to understand how to execute a local executable via the terminal emulation program.
 
Dick

Phuong Do Duc

unread,
Mar 12, 2008, 3:44:51 AM3/12/08
to jB...@googlegroups.com
Thanks Dick,
 
I've nerver seen it before.
 
Does Temenos provide a standard terminal emulation program with T24? : NO, THEY DO NOT PROVIDE ACCUTERM to us. Now, I dont have this tool.
 
Please tell me, how can I have Accuterm tool?
 
Thank you Dick
 
Regards

 
2008/3/12, Dick Thiot <dick....@gmail.com>:

Simon Verona

unread,
Mar 12, 2008, 4:14:12 AM3/12/08
to jB...@googlegroups.com

Accuterm is a third-party terminal emulator – see http://www.asent.com/ for more details.

 

Simon

 

 

From: jB...@googlegroups.com [mailto:jB...@googlegroups.com] On Behalf Of Phuong Do Duc
Sent: 12 March 2008 07:45
To: jB...@googlegroups.com
Subject: Re: Call Windows Execution EXE file from T24

 

Thanks Dick,

<br


Simon Verona.vcf

Phuong Do Duc

unread,
Mar 12, 2008, 5:05:53 AM3/12/08
to jB...@googlegroups.com
Use third-party? I think we can not use this solution, because we must implement to each client computer ... too much ...
 
Anybody solution?
 
Thank you very much.
 
 


 
2008/3/12, Simon Verona <si...@dmservices.co.uk>:

icht...@yahoo.com

unread,
Mar 12, 2008, 5:21:49 AM3/12/08
to jBASE
Hi,

You can create a script in T24 Desktop Script Designer, which uses the
Sexecute command of the Desktop object as follows:

Executable_Path="C:\Program Files\Test.exe"
Desktop.Sexecute Executable_Path, options <-- this is optional

Once you have this working properly by executing it with the SPT
option from the command line, as you mentioned previously, you can
execute the script from a subroutine by using the core T24
CALL.VB.SCRIPT routine as follows:

CALL CALL.VB.SCRIPT("TEST.SCRIPT1")

However this will only work if the subroutine is being called from
within the T24 Desktop, and not through a terminal emulator. or the
T24 browser.

Regards,

Ryan

On Mar 9, 1:05 pm, "Phuong Do Duc" <mitx...@gmail.com> wrote:
> Yes, it like Simon Verona said.
>
> I've already done with VB Script. I have a VB Script within T24 named
> TEST.SCRIPT1, To call this Script, from T24 Command Line, I type SPT
> TEST.SCRIPT1, this Script will run. It is very easy.
>
> 1 - I want to know How to call to a Script from a SubRoutine?
> 2 - How to write a SubRoutine to call to an EXE file from my local Hard disk
> by SubRoutine?
>
> You know, Subroutine is from AIX Server, not in my local computer.
>
> Jim's solution did not success, It can not run, I've tried it.
>
> Regards.
>
> 2008/3/9, Simon Verona <si...@dmservices.co.uk>:
>
>
>
> > I **think** that the OP wants to run an executable on his local desktop
> > pc from a T24 Application running on AIX on the fileserver.... I know
> > nothing about the T24 front end but it would presumably need to provide some
> > way of running a local application?
>
> > Simon
>
> > <http://www.dmservices.co.uk/>
>
> > *From:* jB...@googlegroups.com [mailto:jB...@googlegroups.com] *On Behalf
> > Of *Jim Idle
> > *Sent:* 08 March 2008 16:35
> > *To:* jB...@googlegroups.com
> > *Subject:* RE: Call Windows Execution EXE file from T24
>
> > You just need a subroutine that does:
>
> > EXECUTE "TEST.EXE" ;* When C:\TEMP is in your PATH
>
> > EXECUTE "C:\TEMP\TEST.EXE" ;* When it isn't
>
> > T24 might have something where you can defined a program to be called on
> > certain events, but I don't know that.
>
> > Jim
>
> > *From:* jB...@googlegroups.com [mailto:jB...@googlegroups.com] *On Behalf
> > Of *Phuong Do Duc
> > *Sent:* Friday, March 07, 2008 10:29 PM
> > *To:* jB...@googlegroups.com
> > *Subject:* Call Windows Execution EXE file from T24
>
> > Hi all,
>
> > We r using T24 (AIX platform). In my local Computer - Windows XP SP2, I
> > have an execution file created by VB6, named TEST.EXE, stored in C:\TEMP\
>
> > From T24, how can I call to this TEST.EXE file ?
>
> > Thank you.
>
> > Click here<https://www.mailcontrol.com/sr/dXOI!BASe5SNs+OvJgoOeukyx7GMlhKxjiSqb+...>to report this email as spam.
>
> > This message has been scanned for viruses by BlackSpider MailControl -
> >www.blackspider.com
>
>
>
> image001.jpg
> 13KViewDownload

Simon Verona

unread,
Mar 12, 2008, 5:30:51 AM3/12/08
to jB...@googlegroups.com

What client software do you use with T24 – this is the issue, as it is this software that controls the calling the executables on the client PC – not anything to do with jBASE.

Simon Verona.vcf

Phuong Do Duc

unread,
Mar 12, 2008, 5:53:33 AM3/12/08
to jB...@googlegroups.com
Hi Ryan,
 
Your solution is greate, now I can call to a Script by Routine
by this Function: CALL CALL.VB.SCRIPT("TEST.SCRIPT1")
 
But please help me more, Does CALL.VB.SCRIPT accept any optional parameter, like:
CALL CALL.VB.SCRIPT("TEST.SCRIPT1" para1 para2 ...)
 
If possible, please give me an example.
 
Thank you Ryan once again.
 
Jbase GoogleGroup is fantastic! Thank you all.

Do Duc Phuong.
Seabank - Vietnam


 

Andrew Trusov

unread,
Mar 12, 2008, 6:20:25 AM3/12/08
to jB...@googlegroups.com
As far as I know it is not possible to pass parameters to VB script, but you can call routine from the script using method InvokeRoutine of Desktop object.

buf=Desktop.InvokeRoutine("ROUTINE.NAME","","","","")

InvokeRoutine (RoutineName, Parameters…) -> String Array
Invoke a routine at the server, up to 4 parameters allowed. Returns an array containing the execution results in the routine's parameter list order (assuming the sever routine passes outgoing results back to the routine parameters).


Andrew.


2008/3/12, Phuong Do Duc <mit...@gmail.com>:

Tom Turkington

unread,
Mar 12, 2008, 11:14:23 AM3/12/08
to jB...@googlegroups.com

Phuong, This is a good example of why it is helpful to provide a few details when you ask a question.  If you could actually describe how you’re interfacing with JBase/T24 it would provide the rest of us with a context from which we can advise.  For example:  Are you actually using telnet?  If so what terminal emulator are you actually using to connect.  There are many.  Windows/Unix both have built in telnet clients (which are effectively, terminal emulators), but there are also numerous third party emulators; a few: Accuterm, Netterm, ProComm, Wintegrate and ...  Each of the third party emulators uses their ‘own’ logic to cause the emulator to launch a local process, therefore you need to know which emulator/client you’re using before the question can be answered.

 

But perhaps you’re not using telnet at all.  There are other methods for running Jbase app’s: JBase’s “jsh.exe” client, JRCS/OBjEX hosting app’s, and Web/http servers.  These other methods require/offer different solutions for launching processes.  Again a detail that’s significant to the question...

 

And finally, perhaps the Windows Executable is something that doesn’t require a ‘window’ and is something you actually want run on the server which can be run directly from a telnet session; not knowing ‘what type’ app you want to run only leads to presumption.  If the latter is the case, the answer is:

 

EXECUTE CHAR(255):”k”:WindowsCommand

 

I believe from a PROC it is:

 

PQ

HWindowsCommand

PU

 

Tom @ Proco, Inc

800-867-7626 x4

t...@proman.com

Tony G

unread,
Mar 12, 2008, 4:36:58 PM3/12/08
to jB...@googlegroups.com
Good summary, Tom. As I said in my other post, I'm really ignorant of how
users interact with T24 and the standard client UI for the Temenos
software. There are many ways to connect clients to servers and pass
messages. So far as I've been watching this thread I keep thinking about a
tray/service in Windows that interacts with the server to exchange
messages. This allows any Windows client to interact with an app on any
OS, *nix or otherwise. Without more understanding about what these sites
are using it's guesswork for all of us.

Would it be possible for someone knowledgable in T24 and jBASE to organize
a webinar so that people on both sides of the fence can come together to
understand how things are working, thus allowing us to better help one
another? Lee Burstein would have been ideal for this. I would hope that
someone at Temenos or jBASE International would pick up on this opportunity
to bring their communities a little closer together.

Tony Gravagno
Nebula Research and Development
TG@ remove.pleaseNebula-RnD.com
Nebula R&D sells mv.NET and DesignBais worldwide,
and provides related development and training services


________________________________

Phuong Do Duc

unread,
Mar 12, 2008, 9:46:14 PM3/12/08
to jB...@googlegroups.com
Dear friends,
 
I will describe now for question: why I am interfacing JBase/T24 to outside.
 
In our bank, after USER input new Account ID (or new contract, new entry in FT, DC...), Commit it, we want to show a report (by Vietnamese) immediately. I can not use DEAL SLIP because it can not show Vietnamese language. To show Vietnamese language, we r using Crystal Report. My work now: How to show Crystal Report immediate, it will show details of Application ID just inputted in INAU status. 
 
And my way is:
 
1 - In VERSION.CONTROL, attach a SubRoutine to Application which want to show report immediately. So, when Commit in this Application, Routine is invoked.
 
2 - In this SubRoutine, read ID.NEW, R.NEW, save contents to MDB file and call to Crystal report which used data source from this MDB file to show contents.
 
3 - To save new record to MDB, I must call to Execution Windows file (written by VB6) stored in Local Hard Disk, then save it to MDB file in local hard disk, then call to Crystal report.
 
That's all.
 
So, to save data to MDB and call Crystal report, I must call to external application, in this case I wrote a VB6 EXE file and stored it in Client's local hard disk, this EXE file can call to Crystal report.
 
Our T24 is running in AIX, T24 Desktop Client is running in Windows XP.
 
I can not use third party application like Accuterm, Netterm,...
 
If you have any solution, please explain for me.
 
Thank you very much.
 

 
2008/3/12, Tom Turkington <t...@proman.com>:

John Watson

unread,
Mar 13, 2008, 4:18:14 AM3/13/08
to jBASE
Hi

T24 with UTF8 and the correct versions of jConman, TCS and Desktop is
able to produce deal slips in Vietnamese.

A call to the Help Desk should hopefully point you in the right
direction.

Cheers.
> > *From:* jB...@googlegroups.com [mailto:jB...@googlegroups.com] *On Behalf
> > Of *Phuong Do Duc
> > *Sent:* Wednesday, March 12, 2008 2:06 AM
> > *To:* jB...@googlegroups.com
> > *Subject:* Re: Call Windows Execution EXE file from T24
>
> > Use third-party? I think we can not use this solution, because we must
> > implement to each client computer ... too much ...
>
> > Anybody solution?
>
> > Thank you very much.
>
> > 2008/3/12, Simon Verona <si...@dmservices.co.uk>:
>
> > Accuterm is a third-party terminal emulator - seehttp://www.asent.com/formore details.
>
> > Simon
>
> > <http://www.dmservices.co.uk/>
>
> > *From:* jB...@googlegroups.com [mailto:jB...@googlegroups.com] *On Behalf
> > Of *Phuong Do Duc
> > *Sent:* 12 March 2008 07:45
> > *To:* jB...@googlegroups.com
> > *Subject:* Re: Call Windows Execution EXE file from T24
>
> > Thanks Dick,
>
> > I've nerver seen it before.
>
> > Does Temenos provide a standard terminal emulation program with T24? : NO,
> > THEY DO NOT PROVIDE ACCUTERM to us. Now, I dont have this tool.
>
> > Please tell me, how can I have Accuterm tool?
>
> > Thank you Dick
>
> > Regards
>
> > 2008/3/12, Dick Thiot <dick.th...@gmail.com>:
>
> > I don't think that he has Accuterm. Phong, Accuterm is a terminal
> > emulation program. Does Temenos provide a standard terminal emulation
> > program with T24? That is what you need the doucmentation for to understand
> > how to execute a local executable via the terminal emulation program.
>
> > Dick
>
> > On Tue, Mar 11, 2008 at 9:36 AM, x <lucian_p...@yahoo.com> wrote:
>
> > > Oh, but I dont have any Accuterm document now. I've never seen it
> > before.
>
> > Accuterm,
> > Help
> > Contents
> > AccuTerm 2K2 Reference
> > AccuTerm Programming
>
> > <br
>
> > Click here<https://www.mailcontrol.com/sr/Qynpnn4tnshwm0tp35lwW!qgisUclAGBvmRw!A...>to report this email as spam.
>
>
>
> image001.jpg
> 13KViewDownload- Hide quoted text -
>
> - Show quoted text -

Tom Turkington

unread,
Mar 13, 2008, 10:50:29 AM3/13/08
to jB...@googlegroups.com

Phuong, The key element here is that you’re using the T24 Desktop Client.  Alas I don’t know anything about this client, but my guess is you have documentation for this client that will advise how to do what you want (look for “Launch Windows App”/”Execute Windows App”/”Run Windows App” in the index); or perhaps someone else on the list will (or already has) advise how to do this.  May I say this ‘fuller’ explanation of what you’re trying to do is much better as it tells us exactly what your trying to do and what tools you have available that you can use to accomplish it.  May I say, it is so good, I truly wish I could help, but unfortunately, I lack T24 Desktop experience.

2008/3/12, Tom Turkington <t...@proman.com>:

<br

Jim Idle

unread,
Mar 13, 2008, 12:52:23 PM3/13/08
to jB...@googlegroups.com

I think that the earlier post regarding the use of UTF8 and localized T24 is probably what is needed. Better to use an integrated part of the system than your own add-in if you can. jBASE 4.1+ supports complete i18n an l10n and so Vietnamese should not be a problem if the application work has been done, and it sounds like it has.

 

Jim


 

No virus found in this incoming message.
Checked by AVG.
Version: 7.5.518 / Virus Database: 269.21.7/1327 - Release Date: 3/12/2008 1:27 PM

Phuong Do Duc

unread,
Mar 13, 2008, 10:43:36 PM3/13/08
to jB...@googlegroups.com
Dear all friends,
 
Now I have my own solution, base on Script & OLE server.
 
1 - After commit, call to a Routine
2 - In this Routine, call to a Script
3 - In Script, call to an EXE file (VB60)
4 - When a Window (by EXE) show, User can choose which Account or Contract need to show report and what kind of report need to show after Commit.
 
Thats all, it can show Report immediately by some click.
 
Thank you all for supporting me.
 
Regards.


 
2008/3/13, Jim Idle <ji...@temporal-wave.com>:

I think that the earlier post regarding the use of UTF8 and localized T24 is probably what is needed. Better to use an integrated part of the system than your own add-in if you can. jBASE 4.1+ supports complete i18n an l10n and so Vietnamese should not be a problem if the application work has been done, and it sounds like it has.

 

Jim

 

From: jB...@googlegroups.com [mailto:jB...@googlegroups.com] On Behalf Of Tom Turkington


Sent: Thursday, March 13, 2008 7:50 AM
To: jB...@googlegroups.com

2008/3/12, Tom Turkington <t...@proman.com>:

2008/3/12, Simon Verona <si...@dmservices.co.uk>:

Accuterm is a third-party terminal emulator - see http://www.asent.com/ for more details.




 

<br


 

No virus found in this incoming message.

Ratana Ky

unread,
Mar 19, 2008, 10:53:30 PM3/19/08
to jB...@googlegroups.com
Usually desktop call program or application in AIX server and response to your local PC. Why you need AIX Application server to call program in your local PC?

Phuong Do Duc

unread,
Mar 19, 2008, 11:03:13 PM3/19/08
to jB...@googlegroups.com
You should read carefully in above. Regards.

2008/3/20, Ratana Ky <rata...@gmail.com>:
Reply all
Reply to author
Forward
0 new messages