So, im pretty new to this here, but heres the issue I cannot seem to get past. writing a section of code in batch to launch a program, and simulate a single keypress. here is that code block in question
@echo off
set SendKeys=CScript //nologo //E:JScript "%~F0"
ping -n 5 -w 1 127.0.0.1
start .\cc6.exe
%SendKeys% "{ENTER}"
// JScript section
var WshShell = WScript.CreateObject("WScript.Shell");
WshShell.SendKeys(WScript.Arguments(0));
code returns "Conditional Compilation is off" error. Searching for a solution tells me that adding
/*@cc_on @*/
to the code should resolve the sitation and turn conditional compilation on. however adding that segment in results in " '/*@cc_on'is not recognized as an internal or external command, operable program or batch file." error.