'Hedef' ile bir kısayol var "C:\Users\Public\TestPro\TestPro Automation Framework\taf.js".
Ben bir toplu iş dosyasından çalıştırmak istiyorum, bu yüzden "C:\Users\Public\TestPro\TestPro Automation Framework\taf.js"cmd.exe komut satırına kopyaladı ve enter tuşuna basın. Hiçbir şey olmadı.
"C:\Users\Public\TestPro\TestPro Automation Framework\taf.js"Windows7'deki bir komut satırından nasıl çalışabilirim ?
Güncelleme
js dosyası
var WshShell = new ActiveXObject("Wscript.Shell");
WshShell.run("java -Dlog.dir=%TEMP% -jar taf-loader.jar", 0, false);
WScript.exit;
Her ikisinde de js dosyasını çalıştırmayı denedim Wscript.exeve Cscript.exe@Serge önerdi ama hiçbir şey işe yaramadı = doubleclicking ile başlattığım program başlamadı. Hata da yok.
C:\>Cscript.exe "C:\Users\Public\TestPro\TestPro Automation Framework\taf.js"
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.
C:\>Wscript.exe "C:\Users\Public\TestPro\TestPro Automation Framework\taf.js"
C:\>