Hi,

At first glance, the reason why it freezes is because it looks like
the batch file is waiting for user input that NAnt isn't providing.

I'm sorry, I have to ask.  Why are you running a batch file from a
NAnt build file?  Seems like overkill to me, unless you have a
specific need for it.

Thanks,
Ryan

2010/4/18 Simon H <yo...@live.com>:
> Hi guys,
>
> I'm trying to run a bat file that displays a menu and accepts user input
> from the commandline as input. To clarify, here is an excerpt of the bat
> file:
>
> :topoffile
> @echo off
> @echo =================================================
> @echo This is an Oracle Forms Compilation facility
> @echo =================================================
> @echo.
>
> :accountagain
> @echo off
> @echo Please enter Schema owner account and
> set /p schemaowner=press return key, or QUIT to end:
> if /i [%schemaowner%]==[QUIT] endlocal&goto end
> @echo.
> @echo =================================================
> @echo Schema owner account entered was: '%schemaowner%'
> @echo =================================================
> if [%schemaowner%]==[] goto WrongAccount
> @echo.
>
> In my nant build file I have the following target code:
>
> <target name="menu" description="display build menu">
> <!-- password.bat is in the project basedir -->
> <exec program="password.bat">
> </target>
>
> However, when I run the build file I get the following output:
>
> menu:
>
>      [exec] ♀♀=====================================
>      [exec] This is an Oracle Forms Compilation Facility
>      [exec] =======================================
>      [exec]
>      [exec] Please enter Schema owner account and
>
> The execution of the bat file stops/freezes and cmd.exe will not accept any
> input and I have to Ctrl+C to return to the command prompt. How do I get
> nant to correctly execute the bat file? Thanks in advance!
>
> ________________________________
> Meet local singles online. Browse profiles for FREE!
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> NAnt-users mailing list
> NAnt-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nant-users
>
>

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to