Hi,

This is what I put in my batch file:

test.bat
--------

setlocal
c:
cd C:\temp
c:\temp>c:\program\runme.exe c:\temp\filename printer

Then from the command prompt I did:

C:\temp>test.bat > output.txt

The programs run just fine. The program displays the processing to the screen.
When I open the file output.txt this is what it contains:

C:\temp>setlocal
C:\temp>c:
C:\temp>cd c:\temp
c:\temp>c:\program\runme.exe c:\temp\filename printer

I don't know whats going on.

The output.txt file should contain the output thats dumped to the screen 
but it doesn't.

The executable file is a Perl script which was compiled to a .exe file.
Could there be something in the Perl script thats stopping the output to a 
file?
Its works to the screen so I can't figure out whats happening.

Any ideas?



 >
 >The bat file seem to be working exactly as you tell them to.
 >
 >In the instance below, when you are calling the exe directly, you are
 >rerouting the screen output to the p.log file.
 >
 >It is routing the ouput of the runme command to the log file.
 >
 >In the CFExecute example you posted earlier, you are routing the output
 >from the BAT file to the log file. Not quite the same thing.
 >
 >Try changing the call in the BAT file to match your example below,
 >including the redirected output stream.
 >
 >(and what are the command switches "-e /q /v" doing for you in the
 >CFExecute example? Is /q quiet mode, which supresses all bat file output?)
 >
 >Now you've got me curious
 >Jerry Johnson
 >
 > >>> [EMAIL PROTECTED] 06/05/02 02:27PM >>>
 >Why is my output file empty?
 >
 >The filename is passed to the executable for processing but shen I specify
 >the output to be redirected to a file its empty. Why?
 >
 >Run from command prompt:
 >
 >c:\temp>c:\program\runme.exe c:\temp\filename printer > p.log
 >
 >
 >


+-----------------------------------------------------------------------------------+ 

Philip Humeniuk
[EMAIL PROTECTED]
[EMAIL PROTECTED]
+------------------------------------------------------------------------------------+


______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to