I have found it alas, I was calling the wrong command. the updated command is 

<exec program="ftp.exe" workingdir="D:\AS\temp" failonerror="false"
verbose="true">
                        <arg value="-s:ftps.bat"></arg>
                </exec>

Thanks,
Satesh

Sattapattu wrote:
> 
> Hi,
> 
> Since new to Nant, i have a query again. i have written this script to
> execute a bat file via exec task. The script goes ahead if i run through
> GUI  http://www.nantwizard.com/ Nant Wizard  ,with no result still, but
> while i try to run the Nant in command prompt it just hangs while
> executing this batch file. The script is actually trying to ftp, a zip
> file. I am able to execute the bat file in command prompt with the zip
> file being ftp'ed, but the same thing doesn't work thru Nant. i have
> scripted down the task and contents of the batch file. Can you please let
> me know if i have missed out on anything.
> 
> The task:
> ---------
>       <exec program="cmd.exe" commandline="ftps.bat" workingdir="D:\AC\temp"
> failonerror="false" verbose="true"/>
> </target>
> 
> Contents of Batch file
> ---------------------
> open localhost
> user
> anonymous
> local
> quit
> exit
> 
> Bit it just hangs at this points. Your inputs would be of great help. :-)
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Not-coming-out-of-Exec-task-tp16269127p16269279.html
Sent from the NAnt - Users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to