How do I run a Natural program through a server hosted in an offline environment?

Hello, I am currently trying to create a simple in-house webpage which enables company employees to access/run a program through an offline server network.

I have attempted to, through a function in a HTML page, run a .bat file with the following command:

path C:\\Program Files\Software AG\Natural\6.3\Bin

naturalr.exe PARM=[Library Name]

exit

However, I was prevented from doing so due to ActiveXObject (in the aforementioned function) being blocked, as it is identified as a security hazard. With that being the case, may I ask if there are some other ways to fulfill my initial objective?

The solution does not necessarily have to involve .bat files. But if it does, may I also ask how should I modify the above command so that is runs a specific program in a specific library, rather than simply just accessing a library?

To execute program yourpgm from library yourlib, change your Natural command to

natural.exe batchmode parm=yourparm stack=(logon yourlib;yourpgm;fin) bmtime=on natlog=all

The PARM keyword specifies a Natural parameter file created and maintained by the Natural Configuration utility.

You may need to customize the input for the individual user.
Option 1: See the STACK parameter in the documentation. You can specify INPUT data with a colon.

stack=(logon yourlib;yourpgm:yourdata;fin)

Option 2: You can create an input stream similar to what would be used on the mainframe.

set cmsynin=fully.qualified.temp.input
echo logon yourlib  > %cmsynin%
echo yourpgm       >> %cmsynin%
echo yourdata      >> %cmsynin%
echo fin           >> %cmsynin%

natural.exe batchmode parm=yourparm bmtime=on natlog=all ^
            cmsynin="%cmsynin%" ^
            cmobjin="%cmsynin%"

del %cmsynin%

If your program creates print and/or WORK files

natural.exe batchmode parm=yourparm bmtime=on natlog=all ^
            cmsynin="%cmsynin%" ^
            cmobjin="%cmsynin%" ^
            cmprint="fully.qualified.youruser.cmprint.prt" ^
            cmwrk01="fully.qualified.youruser.work01.txt"

Thank you for replying, Ralph. May I ask if you can provide a simple, laymen example(s)/explanation(s) instead? I’m quite inexperienced with .bat, so I could not quite understand what to do with these separate chunks of code… Sorry for the inconvenience.

Also, since your solution is in .bat, do you have any suggestions on how to implement it into a webpage? If that’s not possible, do you have an alternate solution other than .bat?