I want to run a batch file which is on my local system using javascript or jquery. ActiveXObject didn't helped me at all. I know it is deprecated, but my system will be in some secured internal network.
-
2How should the browser access a batch file on the local harddrive? All browsers should keep you from doing that through their sandboxesNico Haase– Nico Haase2018-08-07 12:37:08 +00:00Commented Aug 7, 2018 at 12:37
-
2Why exactly didn't ActiveXObject help you? Do you have to run it in Chrome / Firefox etc or just IE? Short answer: besides using ActiveX you can't access the local filesystem via JavaScript using a Webbrowserr3dst0rm– r3dst0rm2018-08-07 12:37:21 +00:00Commented Aug 7, 2018 at 12:37
-
@NicoHaase I am displaying some data in browser and doing some processing saving it to my db and then I need to pass that data to a standalone desktop and have to open it in that Desktop application, for which I have written a BAT file. How can I achieve this.zzed pathan– zzed pathan2018-08-07 12:51:33 +00:00Commented Aug 7, 2018 at 12:51
-
@r3dst0rm Yes I am using chrome.zzed pathan– zzed pathan2018-08-07 12:51:54 +00:00Commented Aug 7, 2018 at 12:51
-
@zzedpathan Chrome won't support ActiveX, as it's only working in Internet Explorer. Therefore it's simply impossible as JavaScript engines are running in a sandbox. If you do some processing e.g. in Excel, you could prompt the user for a download in order to open the desired file.r3dst0rm– r3dst0rm2018-08-07 13:42:40 +00:00Commented Aug 7, 2018 at 13:42
|
Show 3 more comments