I'm writing a little program, that calls a small dos-exe, I try to use the output of this exe in my script. The problem is that the exe is exepecting a key stroke [hit any key to continue...]
The code looks like this:
<cfexecute
name="C:\WINNT\SYSTEM32\CMD.EXE"
arguments="/c #getdirectoryFromPath(expandPath("*.*"
)#program.exe > #getdirectoryFromPath(expandPath("*.*"
)#output.tmp"/>
<cffile
action="READ"
file="#getdirectoryFromPath(expandPath("*.*"
)#cfexec.tmp"
variable="content">
Every time I execute the script an error occurs. Error attempting to read 'e:\inetpub\
So is there anyway to simulate a keystroke using cfexecute? So my dos-exe stops executing. The outputfile is unlock and I can read the file?
I'm running cf4.5 on a apache server.
The code looks like this:
<cfexecute
name="C:\WINNT\SYSTEM32\CMD.EXE"
arguments="/c #getdirectoryFromPath(expandPath("*.*"
<cffile
action="READ"
file="#getdirectoryFromPath(expandPath("*.*"
variable="content">
Every time I execute the script an error occurs. Error attempting to read 'e:\inetpub\
So is there anyway to simulate a keystroke using cfexecute? So my dos-exe stops executing. The outputfile is unlock and I can read the file?
I'm running cf4.5 on a apache server.