|Is it possible to write a batch file where I setup some parameters and then pass control to user so he can do his tasks and then wait for Exit statement from user?|
I am writing a script that'll do an initial setup of setting CVSROOT and logging into cvs repository with the user provided credentials. Once login is complete it'll pass control to user so that he can work in the cvs repository and wait for an exit statement to bring control back to batch file.
I normally do a lot of cvs work and hate having to open a dos windows, set CVSROOT and login each time on different machines. So instead want a script that i can just double-click and which will do the initialization for me.
My script looks as follows:
echo Executing CVS Script
set /P user=Enter cvs UserName:
if [%user%]== GOTO:EOF
set /P pwd=Enter cvs Password:
if [%pwd%]== GOTO:EOF
cd\ & cvs -z6 -d :pserver:%2:%email@example.com:/cvs/QA-CM login
if [%errorlevel%] ==  GOTO:EOF
Need something after cd c:\ats