frankx: hta wshScript.Shell command line

Beitrag lesen

Hallo,

mit

  
  wshShell = new ActiveXObject("WScript.Shell");  
  wshShell.Run("firefox.exe");  
  
  var WshShell = new ActiveXObject("WScript.Shell");  
  var oExec = WshShell.Exec("calc");  

lassen sich mit .Run ein Progamm aufrufen und .Exec eine commandline Befehl. Mit zweiterem funktioniert "copy a.txt b.txt" aber nicht. Weiß jemand, wie das geht?

Issich jscript in .hta Datei

Dank Frankx