Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Me and a friend are making a little messenger batch.
Code:
@echo off
setLocal EnableDelayedExpansion
cls
title Dancing Tangerine (Beta 2.1.6):login
cls
color 07
cls
echo Welcome to Dancing Tangerine (2008, All Rights Reserved, Breakout House Inc.)
echo Type your password or 'register' to get started (type 'exit' to exit)...
set /p usrpassword=
IF !usrpassword!==blah goto DrummerDude952
IF !usrpassword!==blah1 goto guest
IF !usrpassword!==blah2 goto Administrator
IF !usrpassword!==blah3 goto MisterCool
IF !usrpassword!==register goto registration
IF !usrpassword!==exit goto exit:wrongpass
echo You entered an invalid password, try again...
pause
goto login:MisterCool
cls
set user=MisterCool
echo Online > "L:\Dancing Tangerine\Status\!user!"
goto colorcheck:DrummerDude952
cls
set user=DrummerDude952
echo Online > "L:\Dancing Tangerine\Status\!user!"
goto colorcheck:Administrator
cls
set user=Administrator
echo Online > "L:\Dancing Tangerine\Status\!user!"
goto colorcheck:Guest
cls
set user=Guest
echo Online > "L:\Dancing Tangerine\Status\!user!"
goto colorcheck:colorcheck
cls
:findtheme
cls
IF exist "L:\Dancing Tangerine\SystemFiles\ColorPrefs\theme_!user!" goto findtypetheme
:findred
Find "0c" "L:\Dancing Tangerine\SystemFiles\ColorPrefs\!user!"
IF ErrorLevel 1 goto findyellow
color 0c
:findyellow
Find "0e" "L:\Dancing Tangerine\SystemFiles\ColorPrefs\!user!"
IF ErrorLevel 1 goto findgreen
color 0e
:findgreen
Find "0a" "L:\Dancing Tangerine\SystemFiles\ColorPrefs\!user!"
IF ErrorLevel 1 goto findblue
color 0a
:findblue
Find "09" "L:\Dancing Tangerine\SystemFiles\ColorPrefs\!user!"
IF ErrorLevel 1 goto findpurple
color 09
:findpurple
Find "05" "L:\Dancing Tangerine\SystemFiles\ColorPrefs\!user!"
IF ErrorLevel 1 goto finddefault
color 0d
:finddefault
Find "color" "L:\Dancing Tangerine\SystemFiles\ColorPrefs\!user!"
IF ErrorLevel 1 goto main
color 07
goto main:findtypetheme
cls
set /p theme=<"L:\Dancing Tangerine\SystemFiles\ColorPrefs\theme_!user!"
color !theme!:main
cls
echo Welcome, !user!...
echo.
echo Pick an option.
echo 1. Messaging
echo 2. Check Online Status
echo 3. DT-Mail
echo 4. Color
echo 5. Sign Out
echo 6. Check for Updateset /p startoption=
IF !startoption!==1 goto messaging
IF !startoption!==2 goto onlinestatus
IF !startoption!==3 goto dtmail
IF !startoption!==4 goto color
IF !startoption!==5 goto signout
IF !startoption!==6 goto updateecho Invaid entry, try again...
pause
goto main:messaging
cls
start iexplore.exe "file:\\\L:\Dancing Tangerine\SystemFiles\DTChat.txt"
:nobrowsermessaging
cls
echo Dancing Tangerine Chat
echo.
echo Type your message and press enter (type 'more' for more options)...
echo.
set /p message=
IF !message!==more goto messagingmore
IF !message!==cls goto clearecho !message! (!user!) >> "L:\Dancing Tangerine\SystemFiles\DTChat.txt"
goto nobrowsermessaging:clear
echo Press 'F5' to load new messages... > "L:\Dancing Tangerine\SystemFiles\DTChat.txt"
echo. >> "L:\Dancing Tangerine\SystemFiles\DTChat.txt"
goto nobrowsermessaging:messagingmore
cls
echo More. Type the option number to choose...
echo.
echo 1. Return to Messaging
echo 2. Return to Mainset /p messagingmore=
IF !messagingmore!==1 goto nobrowsermessaging
IF !messagingmore!==2 goto main
echo Invalid entry, try again...
goto messagingmore:color
cls
echo Type a color... (red, yellow, green, blue, purple, default, or themes)
echo.
set /p colorprefs=
IF exist "L:\Dancing Tangerine\SystemFiles\ColorPrefs\regcolor\!colorprefs!" goto IFcolor
cls
echo Invalid color. Try again...
pause
goto color:IFcolor
cls
IF !colorprefs!==red goto red
IF !colorprefs!==yellow goto yellow
IF !colorprefs!==green goto green
IF !colorprefs!==blue goto blue
IF !colorprefs!==purple goto purple
IF !colorprefs!==default goto default
IF !colorprefs!==themes goto themes:red
echo 0c > "L:\Dancing Tangerine\SystemFiles\ColorPrefs\!user!"
del "L:\Dancing Tangerine\SystemFiles\ColorPrefs\theme_!user!"
cls
echo Color saved...
pause
goto colorcheck
:yellow
echo 0e > "L:\Dancing Tangerine\SystemFiles\ColorPrefs\!user!"
del "L:\Dancing Tangerine\SystemFiles\ColorPrefs\theme_!user!"
cls
echo Color saved...
pause
goto colorcheck
:green
echo 0a > "L:\Dancing Tangerine\SystemFiles\ColorPrefs\!user!"
del "L:\Dancing Tangerine\SystemFiles\ColorPrefs\theme_!user!"
cls
echo Color saved...
pause
goto colorcheck
:blue
echo 09 > "L:\Dancing Tangerine\SystemFiles\ColorPrefs\!user!"
del "L:\Dancing Tangerine\SystemFiles\ColorPrefs\theme_!user!"
cls
echo Color saved...
pause
goto colorcheck
:purple
echo 05 > "L:\Dancing Tangerine\SystemFiles\ColorPrefs\!user!"
del "L:\Dancing Tangerine\SystemFiles\ColorPrefs\theme_!user!"
cls
echo Color saved...
pause
goto colorcheck
:default
echo color > "L:\Dancing Tangerine\SystemFiles\ColorPrefs\!user!"
del "L:\Dancing Tangerine\SystemFiles\ColorPrefs\theme_!user!"
cls
echo Color saved...
pause
goto colorcheck:themes
cls
echo Type in the two letters/numbers following the theme name...
echo.
type "L:\Dancing Tangerine\SystemFiles\ColorPrefs\regcolor\themes.txt"
echo.
set /p themechoice=
echo !themechoice! > "L:\Dancing Tangerine\SystemFiles\ColorPrefs\theme_!user!"
cls
echo Theme choice saved...
echo.
pause
goto colorcheck:onlinestatus
cls
IF exist "L:\Dancing Tangerine\Status\DrummerDude952" echo DrummerDude952 is online!
IF exist "L:\Dancing Tangerine\Status\Administrator" echo The Administrator is online!
IF exist "L:\Dancing Tangerine\Status\Guest" echo Guest is online!
IF exist "L:\Dancing Tangerine\Status\MisterCool" echo MisterCool is online!echo.
echo Press any key to return to the main menu...
pause > nul
goto main:dtmail
cls
echo Welcome, !user! to dtmail, type an option number...
echo.
echo 1. Send a Message.
echo 2. Check Messages.
echo 3. Go to Main Menu.
set /p dtmail=
IF !dtmail!==1 goto senddtmail
IF !dtmail!==2 goto receivedtmail
IF !dtmail!==3 goto main:senddtmail
:to
cls
set /p to=To:
IF exist=="L:\Dancing Tangerine\SystemFiles\RegUsr\!to!" goto dtmailwrite
goto toerror
:dtmailwrite
cls
set /p subject=Subject:
cls
set /p dtmailmessage=Message:
echo !dtmailmessage! > "L:\Dancing Tangerine\dtmail\!to!\!subject!_(!user!).txt"
COPY "L:\Dancing Tangerine\dtmail\!to!\!subject!_(!user!).txt" "L:\Dancing Tangerine\dtmail\!user!\Sent\!subject!_(!to!).txt"
cls
echo Message Sent!
pause
cls
goto dtmail:toerror
cls
echo The username you typed is invalid, try again...
pause
goto to:receivedtmail
cls
start iexplore.exe "file:\\\L:\Dancing Tangerine\dtmail\!user!\"
echo Press any key to return to dtmail...
pause > nul
goto dtmail:registration
cls
echo Welcome to Dancing Tangerine. Type your name.
set /p name=
echo.
echo Type your desired username (numbers and letters only, no spaces or symbols)...
set /p desuser=
echo.
echo Type your desired password...
set /p despass=
echo Name:!name! >> "L:\Dancing Tangerine\SystemFiles\Administration\Registration\Pending"
echo Desired Username:!desuser! Desired Password:!despass! >> "L:\Dancing Tangerine\SystemFiles\Administration\Registration\Pending"
echo. >> "L:\Dancing Tangerine\SystemFiles\Administration\Registration\Pending"
cls
echo Your registration request has been sent. Try back with the password you entered to see if you've been accepted.
echo Press any key to exit...
pause > nul
exit:signout
cls
del "L:\Dancing Tangerine\Status\!user!"
goto login:update
cls
IF exist "L:\Dancing Tangerine\SystemFiles\Update\Update 1" goto yes:no
echo There is no update needed.
pause
goto main:yes
echo Update available!
set /p update=Would you like to update? (y/n)
IF !update!==y goto yesupdate
IF !update!==n goto noupdate:noupdate
cls
echo It is strongly recomended for you to update, are you sure? (y/n)
set /p updatesure=
IF !updatesure!==y goto yesupdate
IF !updatesure!==n goto main
echo Invalid choice, try again...
pause
goto noupdate
pause
cls
goto main:yesupdate
cls
echo Please replace "Dancing Tangerine" on your Flash Drive, with this update.
echo.
echo Dancing Tangerine will now exit.
pause
start iexplore.exe "file:\\\G:\Dancing Tangerine\Update":exit
exitEND OF CODE
We are trying to implement a registration feature into it so that we don't have to add code for every user who wants to join.
Long story short, we need make a batch file to add text to the above batch file in the section with the user info, after "goto login" in ":wrongpass" and before ":colorcheck"... And the section with the passwords between "set /p usrpassword=" and ":wrongpass". The text needed would be in a txt file. There would be five lines that would need to be added to the user info section, and one line needed to be added to the password section. If you need any more info, just tell me.
P.S. I know the code for the registration is a little off. It's not finished.
Babaloomba

My suggestion is to make another batch file that contains the usernames(registered.bat below). This file should contain the line below for each user:
if %usrpassword%==whatever set user=someguy
This way when you regrister a new user you can use this command to enter them to the password check:
set userpassword=
echo if %%userpassword%%==%enteredpass% set user=%enteredusr%>>registered.bat
Also having a label for each user is unnecessary as they contain the same thing, so using:
if defined user goto existuser
checks if the user exists (because it would have been set by calling registered.bat) then goes to existuser.The label :existuser replaces the label for each user, meaning the code is shorter and every user, new or existing, uses the same label.
Below shows some of the changes I suggest.
set /p usrpassword=
IF %usrpassword%==exit goto exit
call registered.bat
if %user% == register goto registration
if defined user goto existuser
:wrongpass
echo You entered an invalid password, try again...
pause
goto login:existusr
cls
echo Online > "L:\Dancing Tangerine\Status\%user%"
cls
:findtheme
cls
IF exist "L:\Dancing Tangerine\SystemFiles\ColorPrefs\theme_%user%" goto findtypetheme

Thank you for your reply and advice. I greatly appreciate it. I'm putting in the things you suggested, but unless I missed something, I don't think you answered my main question.
I need to know how to enter the user info in the selected parts, so it doesn't insert it at the end. I know the:
'echo blah >> DancingTangerine.bat'
, but that puts the text at the end. I need it to go in the password check section.
Babaloomba

I'm not sure how clear my last post was, so I'm going to start again and hopefully make it clearer....
These are just my suggestions you DON'T have to folow them if you don't want.
Firstly I suggest your remove the line "setlocal enabledelayedexpansion" you won't need it for this batch job.Secondly change all occurrences "!" with "%" (removing quotes). Your text editor may have find and replace, this should make this easy.
Thirdly change the below in orange with the below in blue
This...
:MisterCool
cls
set user=MisterCool
echo Online > "L:\Dancing Tangerine\Status\%user%"
goto colorcheck:DrummerDude952
cls
set user=DrummerDude952
echo Online > "L:\Dancing Tangerine\Status\%user%"
goto colorcheck:Administrator
cls
set user=Administrator
echo Online > "L:\Dancing Tangerine\Status\%user%"
goto colorcheck:Guest
cls
set user=Guest
echo Online > "L:\Dancing Tangerine\Status\%user%"
goto colorcheck
Becomes this...
:existuser
cls
echo Online > "L:\Dancing Tangerine\Status\%user%"
goto colorcheck
Thirdly make a new batch file called "registered.bat" (without quotes) and put in it the same directory as your batch and enter the below in blue into it....
IF %usrpassword%==blah set user=DrummerDude952
IF %usrpassword%==blah1 set user=guest
IF %usrpassword%==blah2 set user=Administrator
IF %usrpassword%==blah3 set user=MisterCool
IF %usrpassword%==register set user=registration
Fourthly change the below in orange in your main batchfile to the below in blueThis....
set /p usrpassword=
IF %usrpassword%==blah goto DrummerDude952
IF %usrpassword%==blah1 goto guest
IF %usrpassword%==blah2 goto Administrator
IF %usrpassword%==blah3 goto MisterCool
IF %usrpassword%==register goto registration
IF %usrpassword%==exit goto exit:wrongpass
Becomes this...
set user=
set /p usrpassword=
IF %usrpassword%==exit goto exit
if %user%==register goto registration
call registered.bat
if defined user goto existuser:wrongpass
Now you should be able to append users to your password check using...
set userpassword=
echo if %%userpassword%%==%enteredpass% set user=%enteredusr%>>registered.bat

I'm still not sure if I made it very clear, so here's an explanation.
The above is about removing the need to edit your batchfile. That's why all of the user's labels were combined into :existuser, this make's it work with many combinations without change. Setting the user variable is relegated to a second batch file that contains all of your if statements, calling it will set the user variable.
The second batchfile makes it possible to >> append an extra if statement for every new user.
Removing setlocal enabledelayedexpansion and changing !'s to %'s simplifies the whole environment and may even give a speed increase. The rule I try to follow with delayed expansion is use it if I need to.......
Ofcourse I have left the other chores like checking if a username or password is already taken to you.....
[edit]
It has just occured to me that you may be able to put a label, say :userset, after your exit label(at the very end of the file) with all of the if statements after it instead of in a second batch. This way you could >> append any extra if statements to the end of the file.Instead of calling registered.bat you would:
call :userset
You would still need to make most of the changes above, but it would still all be in one file.I'm not entirely sure if this will work or not but you could try if you like.

I don't think I've had such a one sided conversation in all my life. Sorry to anyone else that may have wanted to reply:-)
Here, all done.....
This appends a new user(of coures you have to do the rest of the work)....
set usrpassword=
echo IF %%usrpassword%%==%whateverthisis% set user=%whatevertheuseris%^&^&goto :eof>>"Dancing Tangerine.bat"
The above even seems to work when it's running, entering in the information then going back to login(without closing) even allows the new login to be used! I didn't check for conflicting passwords though..Your modified batch....
@echo off
cls
title Dancing Tangerine (Beta 2.1.6):login
cls
color 07
cls
echo Welcome to Dancing Tangerine (2008, All Rights Reserved, Breakout House Inc.)
echo Type your password or 'register' to get started (type 'exit' to exit)...
set user=
set /p usrpassword=
IF %usrpassword%==register goto registration
IF %usrpassword%==exit goto exit
call :userset
if defined user goto existuser:wrongpass
echo You entered an invalid password, try again...
pause
goto login:existuser
cls
echo Online > "L:\Dancing Tangerine\Status\%user%"
goto colorcheck:colorcheck
cls
:findtheme
cls
IF exist "L:\Dancing Tangerine\SystemFiles\ColorPrefs\theme_%user%" goto findtypetheme
:findred
Find "0c" "L:\Dancing Tangerine\SystemFiles\ColorPrefs\%user%"
IF ErrorLevel 1 goto findyellow
color 0c
:findyellow
Find "0e" "L:\Dancing Tangerine\SystemFiles\ColorPrefs\%user%"
IF ErrorLevel 1 goto findgreen
color 0e
:findgreen
Find "0a" "L:\Dancing Tangerine\SystemFiles\ColorPrefs\%user%"
IF ErrorLevel 1 goto findblue
color 0a
:findblue
Find "09" "L:\Dancing Tangerine\SystemFiles\ColorPrefs\%user%"
IF ErrorLevel 1 goto findpurple
color 09
:findpurple
Find "05" "L:\Dancing Tangerine\SystemFiles\ColorPrefs\%user%"
IF ErrorLevel 1 goto finddefault
color 0d
:finddefault
Find "color" "L:\Dancing Tangerine\SystemFiles\ColorPrefs\%user%"
IF ErrorLevel 1 goto main
color 07
goto main:findtypetheme
cls
set /p theme=<"L:\Dancing Tangerine\SystemFiles\ColorPrefs\theme_%user%"
color %theme%:main
cls
echo Welcome, %user%...
echo.
echo Pick an option.
echo 1. Messaging
echo 2. Check Online Status
echo 3. DT-Mail
echo 4. Color
echo 5. Sign Out
echo 6. Check for Updateset /p startoption=
IF %startoption%==1 goto messaging
IF %startoption%==2 goto onlinestatus
IF %startoption%==3 goto dtmail
IF %startoption%==4 goto color
IF %startoption%==5 goto signout
IF %startoption%==6 goto updateecho Invaid entry, try again...
pause
goto main:messaging
cls
start iexplore.exe "file:\\\L:\Dancing Tangerine\SystemFiles\DTChat.txt"
:nobrowsermessaging
cls
echo Dancing Tangerine Chat
echo.
echo Type your message and press enter (type 'more' for more options)...
echo.
set /p message=
IF %message%==more goto messagingmore
IF %message%==cls goto clearecho %message% (%user%) >> "L:\Dancing Tangerine\SystemFiles\DTChat.txt"
goto nobrowsermessaging:clear
echo Press 'F5' to load new messages... > "L:\Dancing Tangerine\SystemFiles\DTChat.txt"
echo. >> "L:\Dancing Tangerine\SystemFiles\DTChat.txt"
goto nobrowsermessaging:messagingmore
cls
echo More. Type the option number to choose...
echo.
echo 1. Return to Messaging
echo 2. Return to Mainset /p messagingmore=
IF %messagingmore%==1 goto nobrowsermessaging
IF %messagingmore%==2 goto main
echo Invalid entry, try again...
goto messagingmore:color
cls
echo Type a color... (red, yellow, green, blue, purple, default, or themes)
echo.
set /p colorprefs=
IF exist "L:\Dancing Tangerine\SystemFiles\ColorPrefs\regcolor\%colorprefs%" goto IFcolor
cls
echo Invalid color. Try again...
pause
goto color:IFcolor
cls
IF %colorprefs%==red goto red
IF %colorprefs%==yellow goto yellow
IF %colorprefs%==green goto green
IF %colorprefs%==blue goto blue
IF %colorprefs%==purple goto purple
IF %colorprefs%==default goto default
IF %colorprefs%==themes goto themes:red
echo 0c > "L:\Dancing Tangerine\SystemFiles\ColorPrefs\%user%"
del "L:\Dancing Tangerine\SystemFiles\ColorPrefs\theme_%user%"
cls
echo Color saved...
pause
goto colorcheck
:yellow
echo 0e > "L:\Dancing Tangerine\SystemFiles\ColorPrefs\%user%"
del "L:\Dancing Tangerine\SystemFiles\ColorPrefs\theme_%user%"
cls
echo Color saved...
pause
goto colorcheck
:green
echo 0a > "L:\Dancing Tangerine\SystemFiles\ColorPrefs\%user%"
del "L:\Dancing Tangerine\SystemFiles\ColorPrefs\theme_%user%"
cls
echo Color saved...
pause
goto colorcheck
:blue
echo 09 > "L:\Dancing Tangerine\SystemFiles\ColorPrefs\%user%"
del "L:\Dancing Tangerine\SystemFiles\ColorPrefs\theme_%user%"
cls
echo Color saved...
pause
goto colorcheck
:purple
echo 05 > "L:\Dancing Tangerine\SystemFiles\ColorPrefs\%user%"
del "L:\Dancing Tangerine\SystemFiles\ColorPrefs\theme_%user%"
cls
echo Color saved...
pause
goto colorcheck
:default
echo color > "L:\Dancing Tangerine\SystemFiles\ColorPrefs\%user%"
del "L:\Dancing Tangerine\SystemFiles\ColorPrefs\theme_%user%"
cls
echo Color saved...
pause
goto colorcheck:themes
cls
echo Type in the two letters/numbers following the theme name...
echo.
type "L:\Dancing Tangerine\SystemFiles\ColorPrefs\regcolor\themes.txt"
echo.
set /p themechoice=
echo %themechoice% > "L:\Dancing Tangerine\SystemFiles\ColorPrefs\theme_%user%"
cls
echo Theme choice saved...
echo.
pause
goto colorcheck:onlinestatus
cls
IF exist "L:\Dancing Tangerine\Status\DrummerDude952" echo DrummerDude952 is online%
IF exist "L:\Dancing Tangerine\Status\Administrator" echo The Administrator is online%
IF exist "L:\Dancing Tangerine\Status\Guest" echo Guest is online%
IF exist "L:\Dancing Tangerine\Status\MisterCool" echo MisterCool is online%echo.
echo Press any key to return to the main menu...
pause > nul
goto main:dtmail
cls
echo Welcome, %user% to dtmail, type an option number...
echo.
echo 1. Send a Message.
echo 2. Check Messages.
echo 3. Go to Main Menu.
set /p dtmail=
IF %dtmail%==1 goto senddtmail
IF %dtmail%==2 goto receivedtmail
IF %dtmail%==3 goto main:senddtmail
:to
cls
set /p to=To:
IF exist=="L:\Dancing Tangerine\SystemFiles\RegUsr\%to%" goto dtmailwrite
goto toerror
:dtmailwrite
cls
set /p subject=Subject:
cls
set /p dtmailmessage=Message:
echo %dtmailmessage% > "L:\Dancing Tangerine\dtmail\%to%\%subject%_(%user%).txt"
COPY "L:\Dancing Tangerine\dtmail\%to%\%subject%_(%user%).txt" "L:\Dancing Tangerine\dtmail\%user%\Sent\%subject%_(%to%).txt"
cls
echo Message Sent%
pause
cls
goto dtmail:toerror
cls
echo The username you typed is invalid, try again...
pause
goto to:receivedtmail
cls
start iexplore.exe "file:\\\L:\Dancing Tangerine\dtmail\%user%\"
echo Press any key to return to dtmail...
pause > nul
goto dtmail:registration
cls
echo Welcome to Dancing Tangerine. Type your name.
set /p name=
echo.
echo Type your desired username (numbers and letters only, no spaces or symbols)...
set /p desuser=
echo.
echo Type your desired password...
set /p despass=
echo Name:%name% >> "L:\Dancing Tangerine\SystemFiles\Administration\Registration\Pending"
echo Desired Username:%desuser% Desired Password:%despass% >> "L:\Dancing Tangerine\SystemFiles\Administration\Registration\Pending"
echo. >> "L:\Dancing Tangerine\SystemFiles\Administration\Registration\Pending"
cls
echo Your registration request has been sent. Try back with the password you entered to see if you've been accepted.
echo Press any key to exit...
pause > nul
exit:signout
cls
del "L:\Dancing Tangerine\Status\%user%"
goto login:update
cls
IF exist "L:\Dancing Tangerine\SystemFiles\Update\Update 1" goto yes:no
echo There is no update needed.
pause
goto main:yes
echo Update available%
set /p update=Would you like to update? (y/n)
IF %update%==y goto yesupdate
IF %update%==n goto noupdate:noupdate
cls
echo It is strongly recomended for you to update, are you sure? (y/n)
set /p updatesure=
IF %updatesure%==y goto yesupdate
IF %updatesure%==n goto main
echo Invalid choice, try again...
pause
goto noupdate
pause
cls
goto main:yesupdate
cls
echo Please replace "Dancing Tangerine" on your Flash Drive, with this update.
echo.
echo Dancing Tangerine will now exit.
pause
start iexplore.exe "file:\\\G:\Dancing Tangerine\Update":exit
exit:userset
IF %usrpassword%==blah set user=DrummerDude952&&goto :eof
IF %usrpassword%==blah1 set user=guest&&goto :eof
IF %usrpassword%==blah2 set user=Administrator&&goto :eof
IF %usrpassword%==blah3 set user=MisterCool&&goto :eof

Sorry for the late reply. I see now what you were trying to do. I did incorporate that idea, but I used single user files instead of a bat or txt file with the all of the usernames and passwords.
If you want me to post my final code, just for you to see what I did, I will.
I have another quick question (I'm posting it in a new topic) about the TYPE command. Help is always appreciated.
Thank you for all your help.
Babaloomba

No need to post the code, good to hear it worked out. I have already read your new post, just ignore the question at the bottom. If you have already read my reply to your new post go back and read it again, I found a much simpler method and just edited the post.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |