Batch Scripting

XylexRayne

Solid State Member
Messages
16
This was as close as I saw as a topic category, if I missed where this should go, I am sorry in advance.

I have an odd request.
I am writing a batch script, sorta like a password system.
I know that the passwords will be in raw text, but no one can access the system from anywhere.

I want Users to be to be able to change their password when they Like... So I thought of this.

This is how it was:
@echo off
:Start
echo. Waiting for User Entery code.
ECHO.
echo. && set /p MO=Enterd Code:
)
if /i "%MO%"=="<PASSWORD1>" (
goto <User1>
)
if /i "%MO%"=="<PASSWORD2>" (
goto <User2>
)
if /i "%MO%"=="<PASSWORD3>" (
goto <User3>
)
if /i "%MO%"=="<PASSWORD4>" (
goto <User4>
)
if /i "%MO%"=="<PASSWORD5>" (
goto <User5>
)
========================================
This is what I am Looking for
Something along the lines of doing a If Exist /p User input line... So I can just have a file name with the user's password...

And have a User Input line change the Name of the file.. as to changing the password...

I am sorry if I am sounding n00bish...
I am just trying to do something fun...

Any help would be awesome...

Let me know if you need more info too...
 
How are you running the batch script on a server?

You should probably look up VBScript.

-Sam
 
VBScript isn't what I need.
The Users are AT the station it runs on... The batch file is all that runs...

-Xylex
 
Add my MSN or AIM (listed in profile), I have done a huge amount of batch scripting and could likely be a big help. I do basically get what you are trying to do.
 
Back
Top Bottom