Added SDVX commandline to launch in background with "start /b"

This commit is contained in:
Vaclav Siml 2023-02-24 20:33:29 +01:00
parent 52a68e67b6
commit c9dacb89bc

View file

@ -104,32 +104,32 @@
</script> </script>
<script> <script>
var vers = 0; var vers = 0; /* Handles Running of apps */
const { execFile, exec, spawn } = require('child_process'); const { execFile, exec, spawn } = require('child_process');
function sdvx(){ function sdvx() {
console.log("promenna",vers); console.log("promenna", vers);
switch (vers) { switch (vers) {
case 3: case 3:
execFile(AsphyxiaPath); execFile(AsphyxiaPath);
execFile(SDVX3Path); exec("start /b " + SDVX3Path);
setTimeout(function(){ setTimeout(function () {
spawn("taskkill /im " + browser) exec("taskkill /im " + browser)
},1200) }, 2000)
//console.log(vers); //console.log(vers);
break; break;
case 4: case 4:
execFile(AsphyxiaPath); execFile(AsphyxiaPath);
exec(SDVX4Path); exec("start /b " + SDVX4Path);
setTimeout(function(){ setTimeout(function () {
exec("taskkill /im " + browser) exec("taskkill /im " + browser)
},1200) }, 1200)
break; break;
case 5: case 5:
execFile(AsphyxiaPath); execFile(AsphyxiaPath);
spawn(SDVX5Path); exec("start /b " + SDVX5Path);
setTimeout(function(){ setTimeout(function () {
exec("taskkill /im " + browser) exec("taskkill /im " + browser)
},1200) }, 1200)
break; break;
case 6: case 6:
@ -140,4 +140,5 @@
} }
</script> </script>
</body> </body>
</html> </html>