How to invoke script by comand line and javascript?
Posted: 28 May 2014 22:21
I can call XYplorer from command line with command:
and with javascript:
How to modify them if I need to start XYplorer and invoke script from myscript.xys file and could I put this script file at any place I need not only at "..\Data\Scripts\" ?
Thanks
Code: Select all
start "" "D:\programs\xyplorer\XYplorer.exe"Code: Select all
<html><head>
<script type="text/javascript">
function runProgram() {
var shell = new ActiveXObject("WScript.Shell");
var appWinMerge = "D:\\programs\\xyplorer\\XYplorer.exe";
shell.Run(appWinMerge);
}
</script>
</head><body>
<a href="javascript:runProgram()">Run program</a>
</body></html>Thanks