E1Pages - How to run local application

xxpeta

Active Member
Hi All,

is there any way how to call local application from E1 pages? For example C:\WINDOWS\notepad.exe? And if yes, how to disable the icon if the path does not exist?

Thanks for your reply.

Petr
 
Yes, you can call a local application from E1 pages by using Batch file.

First you need to execute .bat file from E1 page and then execute .exe from that batch file.

***********************************************
.dat file Code :

%TEST%
*hover=off

@A::Notepad:window.open('file\:///D\:/Test.bat')

= A
***********************************************

***********************************************
.bat file Code :

@echo off
cd\
START notepad.exe
Exit
***********************************************

Place this .bat file anywhere at your local computer (I have placed Test.bat file at D:/Test.bat location) and give this path to .dat file, so E1 page can execute the batch file.


Regards,
Mihir
 
Yes, you can call a local application from E1 pages by using Batch file.


First you need to execute .bat file from E1 page and then execute .exe file from that batch file.

********************************************
.dat file code :

%TEST%
*hover=off

@A::Notepad:window.open('file\:///D\:/Test.bat')

= A
********************************************

********************************************
.bat file code :

@echo off
cd\
START notepad.exe
Exit

********************************************


Place this .bat file anywhere at your local computer (I have placed Test.bat file at D:/Test.bat location)and give this path to .dat file so E1 page can execute the batch file.

And which icon you want to disable?

Regards,
Mihir
 
Hi Mihir,

I´m trying it, but there is something wrong.

@A::ACDC WINDOWS client:window.open('file\:///C:\Install\ACDC_WIN\ACDC.bat')

= A

When I run C:\Install\ACDC_WIN\ACDC.bat locally, it works, but when I generate the E1 pages and run home.html it doesn´t work.
 
Finally it works.
@A::AC/DC Windows Client:window.open('file\:///C\:/Install/ACDC_WIN/ACDC.bat')
 
Back
Top