cancel
Showing results for 
Search instead for 
Did you mean: 

how execute a transaction in ms-dos?

Former Member
0 Kudos

I need call a transaction in the ms-dos. Someone can help-me?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Ted,

source test.bat see below

@echo off

start iexplore.exe "http://danilosantos/Lighthammer/Runner?Transaction=Training/Trash/SumValues&num1=%1%&num2=%2%&OutputParameter=result&IllumLoginName=Admin&IllumLoginPassword=Admin&content-type=text/xml"

on ms-dos execute

c:\test.bat 10 10

my result is 20

Training/Trash/SumValues = your paste with name this transaction

Variables internal

num1=%1%

num2=%2%

Config user and password

IllumLoginName=Admin&IllumLoginPassword=Admin

Danilo

Edited by: Danilo Faria Santos on Jun 12, 2009 10:30 PM

Answers (4)

Answers (4)

Former Member
0 Kudos

Thanks for all.

Edited by: ted.rovina on Jun 15, 2009 2:06 PM

Former Member
0 Kudos

Ted,

It's different, Would you please tell us the value add of this exercise ?

Regards

Ram Upadhyay

Former Member
0 Kudos

I'm calling the transaction in a script .bat!!!

Edited by: ted.rovina on Jun 9, 2009 3:55 PM

Former Member
0 Kudos

Opps, I guess I got your question backwards.

Can you tell us what the bat job does or why you need to call the transaction? It may help us help you find the best solution.

Former Member
0 Kudos

The batch file is a script from ip21.

Former Member
0 Kudos

When you say MS DOS, do you mean MS DOS on Windows or MS DOS alone?

Former Member
0 Kudos

I'm referring the ms dos of the Windows!

Former Member
0 Kudos

You can almost certainly use the Windows Scripting Host (WSH), launched from an MS DOS task, to run a Javascript of VBScript script that can do URL calls and much more.

former_member202228
Active Participant
0 Kudos

Make your URL to the transaction using servlets (content generation wizard, select Hyperlink), try it with your current browser to see the results, and then access it with a DOS browser when needed. You might need auto authentication for MII, which can be given as command line parameters (there were some posts on this in the forums).

Example DOS Browser Link: http://www.fdisk.com/doslynx/lynxport.htm

You can run the transaction with "lynx xMII_URL" from C, Pascal, etc using system(), exec() or using any batch scripting command you may have available on your DOS environment.

Former Member
0 Kudos

Wrap something like this: [http://www.javalobby.org/java/forums/t53333.html|http://www.javalobby.org/java/forums/t53333.html]

in a custom action.

In my opinion Its kinda not a good security practice though.