empty log file when running batch ftp?
<p>I'm running a batch file that runs a ftp connection.
Everything is working; 
my only problem is that I want to see the result of the ftp session.
I have done this:</p>

<pre><code>    @echo off
    (
    for /f "usebackq delims=" %%a in ("IP.txt") do (
       ping -n 1 %%a |find "TTL=" &gt;nul 
       if errorlevel 1 (echo %%a failed) else (echo      %%a passed
start c:\ftp -s:test.txt %aa) 
    )&gt;%%a.txt
    )&gt;output.log
</code></pre>

<p>but this only creates me an empty txt file.
If I do the same command not in a batch file - it's working </p>

<p>What could be the problem?</p>

<p>Thanks</p>