Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

simulating a space when using cfexecute

Status
Not open for further replies.

webron

Programmer
Apr 16, 2000
47
NL
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=&quot;C:\WINNT\SYSTEM32\CMD.EXE&quot;
arguments=&quot;/c #getdirectoryFromPath(expandPath(&quot;*.*&quot;))#program.exe > #getdirectoryFromPath(expandPath(&quot;*.*&quot;))#output.tmp&quot;/>

<cffile
action=&quot;READ&quot;
file=&quot;#getdirectoryFromPath(expandPath(&quot;*.*&quot;))#cfexec.tmp&quot;
variable=&quot;content&quot;>

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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top