Re: Running a bat file

Simon H <[email protected]>
Newsgroups gmane.comp.windows.dotnet.nant.user
Message-ID <[email protected]>
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!
 		 	   		  
_________________________________________________________________
Browse profiles for FREE! Meet local singles online.
http://clk.atdmt.com/NMN/go/150855801/direct/01/

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.