user2574948
user2574948

Reputation: 267

javascript run exe file

I'm in the process of studying some JavaScript code, produced by another developer and I am unclear on some of the terms used in it.

monitorApplication("wceport -ind -d  -rn \\\\cms\\civica\\new.rpt", "Address Directory", "wcreport.exe");

Can anyone please tell me what is meant by "-ind -d -rn"? I'm kind of new to javascript.

Thanks!

Upvotes: 0

Views: 1356

Answers (2)

Péter
Péter

Reputation: 2181

The called monitorApplication could call active x or simply pass these parameters to server side. Find the method source if any.

Upvotes: 0

Paul
Paul

Reputation: 27423

-ind -d -rn is not part of Javascript.

These look like command line options to an external program: wcereport

Perhaps they are defined there.

I also note that monitorApplication() is neither a standard function of Javascript nor something provided by jQuery.

Starting an external application from Javascript within a web browser is practically the definition of a security hole or backdoor.

In nodeJS, a server side Javascript container, it is possible to spawn child processes that run arbitrary programs.

Upvotes: 1

Related Questions