मेरा 'टारगेट' के साथ एक शॉर्टकट है "C:\Users\Public\TestPro\TestPro Automation Framework\taf.js"।
मैं उसे बैच फ़ाइल से चलाना चाहता हूं, इसलिए मैंने "C:\Users\Public\TestPro\TestPro Automation Framework\taf.js"cmd.exe कमांड लाइन में कॉपी किया और एंटर दबाया। कुछ नहीं हुआ।
मैं "C:\Users\Public\TestPro\TestPro Automation Framework\taf.js"विंडोज 7 पर कमांड लाइन से कैसे चला सकता हूं ?
अपडेट करें
js फ़ाइल में है
var WshShell = new ActiveXObject("Wscript.Shell");
WshShell.run("java -Dlog.dir=%TEMP% -jar taf-loader.jar", 0, false);
WScript.exit;
मैंने js फ़ाइल को दोनों के साथ चलाने की कोशिश की Wscript.exeऔर Cscript.exe@Serge ने सुझाव दिया लेकिन कुछ भी काम नहीं किया = जो कार्यक्रम मैंने डबलक्लबिंग से शुरू किया है वह शुरू नहीं हुआ है। कोई त्रुटि भी नहीं।
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:\>