Help...help...help
Posted: 21 Nov 2011 22:07
Hi....
I have a batch file which start uTorrent with the warning remaining about connecting external drive with the utorrents files.
This is to remind and prevent the start of application, because if I start utorrent without external hard drive the utorrent application can't find the correct directory and all file are reported as falls. When finally drive is connected it is required to make recheck which take a long time to finalize. Before finish that task it is impossible to use application in any form.
This is the batch:
****************************************************************
@echo off
@echo off
color C
echo ------------------------------------------------
echo Did you connect external DRIVE for uTorrents ???
echo ------------------------------------------------
echo.
echo MENU
echo ---------
echo 1= Yes
echo 2= No
echo.
set /pbang= Please select and press ENTER - Option:
if %bang%==1 goto 1
if %bang%==2 goto 3
echo -----
:1
@echo off
CLS
color A
echo.
echo.
echo.
echo ---------------------------------
echo Do you want to start uTorrent ???
echo ---------------------------------
echo.
echo MENU
echo ---------
echo 1= Yes
echo 2= No
echo.
set /pbang= Please select and press ENTER - Option:
if %bang%==1 goto 4
if %bang%==2 goto 5
:3
CLS
echo.
echo.
echo.
echo -----------------------------------------------------
echo Please connect external DRIVE with uTorrent files
echo -----------------------------------------------------
pause
CLS
color E
echo --------------
echo and try again
echo --------------
pause
CLS
Exit
:4
Start C:\>c:\BatchuTorrentLink
Start c:\BatchuTorrentLink\uTorrent.exe
:5
CLS
Exit
*******************************************************
Everything it seems to work correctly expect one little hiccup at the end of section with this options:
******************
:1
@echo off
CLS
color A
echo.
echo.
echo.
echo ---------------------------------
echo Do you want to start uTorrent ???
echo ---------------------------------
echo.
echo MENU
echo ---------
echo 1= Yes
echo 2= No
echo.
set /pbang= Please select and press ENTER - Option:
if %bang%==1 goto 4
if %bang%==2 goto 5
***************************
option with key 1 and 2 works correctly but I have notice that if I choose just any other key on keyboard and "ENTRY", still it make selection to run the final and requested .exe file
I was trying to find solution to prevent that but unfortunately without success.
Now at the end I have just notice that similar situation specially with pressing "any key on keyboard" apply as well to section at beginning.
It is not a very important, but it bothers me to find out how it can be done covering practically every situation.
Thanks for help,
Kalop
I have a batch file which start uTorrent with the warning remaining about connecting external drive with the utorrents files.
This is to remind and prevent the start of application, because if I start utorrent without external hard drive the utorrent application can't find the correct directory and all file are reported as falls. When finally drive is connected it is required to make recheck which take a long time to finalize. Before finish that task it is impossible to use application in any form.
This is the batch:
****************************************************************
@echo off
@echo off
color C
echo ------------------------------------------------
echo Did you connect external DRIVE for uTorrents ???
echo ------------------------------------------------
echo.
echo MENU
echo ---------
echo 1= Yes
echo 2= No
echo.
set /pbang= Please select and press ENTER - Option:
if %bang%==1 goto 1
if %bang%==2 goto 3
echo -----
:1
@echo off
CLS
color A
echo.
echo.
echo.
echo ---------------------------------
echo Do you want to start uTorrent ???
echo ---------------------------------
echo.
echo MENU
echo ---------
echo 1= Yes
echo 2= No
echo.
set /pbang= Please select and press ENTER - Option:
if %bang%==1 goto 4
if %bang%==2 goto 5
:3
CLS
echo.
echo.
echo.
echo -----------------------------------------------------
echo Please connect external DRIVE with uTorrent files
echo -----------------------------------------------------
pause
CLS
color E
echo --------------
echo and try again
echo --------------
pause
CLS
Exit
:4
Start C:\>c:\BatchuTorrentLink
Start c:\BatchuTorrentLink\uTorrent.exe
:5
CLS
Exit
*******************************************************
Everything it seems to work correctly expect one little hiccup at the end of section with this options:
******************
:1
@echo off
CLS
color A
echo.
echo.
echo.
echo ---------------------------------
echo Do you want to start uTorrent ???
echo ---------------------------------
echo.
echo MENU
echo ---------
echo 1= Yes
echo 2= No
echo.
set /pbang= Please select and press ENTER - Option:
if %bang%==1 goto 4
if %bang%==2 goto 5
***************************
option with key 1 and 2 works correctly but I have notice that if I choose just any other key on keyboard and "ENTRY", still it make selection to run the final and requested .exe file
I was trying to find solution to prevent that but unfortunately without success.
Now at the end I have just notice that similar situation specially with pressing "any key on keyboard" apply as well to section at beginning.
It is not a very important, but it bothers me to find out how it can be done covering practically every situation.
Thanks for help,
Kalop