Question Richard Prouvot · Dec 19, 2023

Windows DOS call from a routine

I have written an in network single web page containing a jquery datatable. I want to add the "href" tag to link the Terminal window based on the IP.

Below is a list of failed attempts to make this work.

W " <td><a href=""javascript:pass('"_PASS_"|"_IP_"|"_USER_"|"_PORT_"')"">Terminal</a></td>"

or

" <td><a href=""javascript:openCMD('test')"">Terminal</a></td>"

or

" <td><a href=""C:\\Cachesys\bin\cterm.exe /console=cn_iptcp:ip[23"">Terminal</a></td>"

 " function openCMD(ip) {"
 W " var oShell = new window.ActiveXObject(""WScript.Shell"");"
 W " oShell.Run(""dir *.*"");"
 W " oShell.Run(""C:\\Cachesys\bin\cterm.exe /console=cn_iptcp:ip[23]"");"
 " };"

Please note that it is only within the network with no access to the outside. I am aslo aware that the ActiveXObject no longer works on IE.

Can anyone with expertise help with the problem, please?

Richard

Product version: Caché 2013.1

Comments

Richard Prouvot  Dec 19, 2023 to David Hockenbroch

Hi,

this web page is on the client. Right now it is on my machine. this is not going to be deployed anywhere; it is simply a tool to access information across the Cache databases 

I tried $zf and that works only for very simple command like $zf(-1,"dir *.*"). but it does not work some more complicated statements. I tried a javascript functions, but IE does not allow it, anymore.

there has to be a way to do this. No?

0
Enrico Parisi  Dec 19, 2023 to Richard Prouvot

"here has to be a way to do this. No?"

well...no!

0