Grupong Kul
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Grupong Kul

The forum of computer wizards
 
HomePortalLatest imagesSearchRegisterLog in

 

 Login Batchfile

Go down 
3 posters
AuthorMessage
Alfred007
Moderator
Moderator
Alfred007


Posts : 297
Join date : 2009-06-11

Login Batchfile Empty
PostSubject: Login Batchfile   Login Batchfile Icon_minitimeThu Sep 23, 2010 12:42 am

Just sharin what i've created a whule ago.
I've made a successful login/register app in batchfile, but my problem is it must be in C++..

Here is the source:

Quote :
@echo off
:: By Alfr3d007
:: AKA 5yn74x3rr0r
:: or simply Jay Ocampo
TITLE LOGIN lang

:begin
cls
if not exist *.user goto register

:start
cls
echo.
echo.
echo wwhat do you want to do?
echo 1. register
echo 2. login
echo 3. exit
set /p "command= :"
if %command%==1 goto register
if %command%==2 goto login
if %command%==3 exit
if errorlevel==1 goto start
if errorlevel==2 goto start
goto start

:register
cls
echo.
COLOR 0A
if not exist *.user echo you are redirected here because no user ever registered yet.
echo Please register now.
echo Enter desired username
set /p "reguser= :"
if exist "%reguser%.user" goto userexists
echo registered > "%reguser%.user"
date /t >> "%reguser%.user"
time /t >> "%reguser%.user"
attrib +s +h "%reguser%.user"
echo enter password
set /p "regpass= :"
date /t > %regpass%.pass
attrib +s +h %regpass%.pass
echo Username [%reguser%] created successfuly!
echo you can now login.
pause>null
goto start

:userexists
cls
COLOR 4E
echo error: User already exists!
echo Press any key to go back...
pause >null
goto register

:login
echo enter username
set /p "loguser= :"
echo enter password
set /p "logpass= :"
if exist "%loguser%.user" goto verify
echo mali yun!
pause
exit

:verify
if exist %logpass%.pass goto OK
COLOR 4E
echo ERROR: Wrong Password!
pause >null
goto login
pause
exit

:OK
echo User [%loguser%] logged in successfuly!
echo Logged in >> "%reguser%.user"
date /t >> "%loguser%.user"
time /t >> "%loguser%.user"
echo your login history
type "%loguser%.user"
pause >null

::Gre3t1n6z to
:: Niero
:: Assassincross
:: RL
:: TrisJ
:: ghello
:: and the orhers!


Login Batchfile Login_11

Login Batchfile Login_12

Login Batchfile Login_13

Login Batchfile Login_14

Login Batchfile Login_15

Login Batchfile Login_10
Back to top Go down
Niero
Admin
Admin
Niero


Posts : 219
Join date : 2009-06-13

Login Batchfile Empty
PostSubject: Re: Login Batchfile   Login Batchfile Icon_minitimeThu Sep 23, 2010 6:38 pm

HEHE DOWNLOADING
Back to top Go down
Trisj
Admin
Admin
Trisj


Posts : 115
Join date : 2009-05-28
Age : 32
Location : In this forum, duh!

Login Batchfile Empty
PostSubject: Re: Login Batchfile   Login Batchfile Icon_minitimeWed May 16, 2012 9:39 am

Might I use this for GKoder? I need a user and password for generating asymmetric keys.
Back to top Go down
https://forumgk.forumotion.com
Alfred007
Moderator
Moderator
Alfred007


Posts : 297
Join date : 2009-06-11

Login Batchfile Empty
PostSubject: Re: Login Batchfile   Login Batchfile Icon_minitimeFri Jul 06, 2012 12:47 pm

I just read this today, and I missed coding.
Back to top Go down
Sponsored content





Login Batchfile Empty
PostSubject: Re: Login Batchfile   Login Batchfile Icon_minitime

Back to top Go down
 
Login Batchfile
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Grupong Kul :: GK Section :: GK Apps-
Jump to: