Home > Software engineering >  Windows 7-32 - IE js calls a batch file, the command window
Windows 7-32 - IE js calls a batch file, the command window

Time:09-19

Here are run the batch file, cycle a few times, the death of interface

Here are my HTML code:
 & lt; ! DOCTYPE html> 

<meta charset="UTF-8">

The function ope () {
New ActiveXObject (" WScript. Shell "). The Run (" D:/test/open. Bat ");
}
The function clo () {
New ActiveXObject (" WScript. Shell "). The Run (" D:/test/close. Bat ", 0, true);
}
</script>

<body>


Here are my batch file command, file: open the bat
 d: 
CD/
CD test
: loop
OpenRelay. Exe 1 1
Delay. Exe 1000
CloseRelay. Exe 1 1
Delay. Exe 1000
Goto loop

It is run under Windows 7-32 - IE8
Under Windows 7-64 - IE, however, would not have this kind of problem,, every brother please give advice or comments, I am a Java rookie

CodePudding user response:

What is the close. The bat code?
Estimation is forced in some way before the end of the process of CMD,

You may then use another exe "notify you that a few processes" exit "properly" is better,
  • Related