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!
-
Are you kidding man...!! No one can help you with this much information...Bhavik– Bhavik2014年03月24日 05:25:29 +00:00Commented Mar 24, 2014 at 5:25
-
This is not javascript code, I mean these - terms. Try searching for cmd termsIti Tyagi– Iti Tyagi2014年03月24日 05:38:10 +00:00Commented Mar 24, 2014 at 5:38
2 Answers 2
-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.
1 Comment
The called monitorApplication could call active x or simply pass these parameters to server side. Find the method source if any.