Go Back   Computer Forums > General Computing > Server Administration
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 07-08-2007, 08:17 AM   #1
Solid State Member
 
Join Date: Jul 2007
Posts: 16
Default Batch Scripting

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...
__________________

XylexRayne is offline   Reply With Quote
Old 07-08-2007, 03:26 PM   #2
Baseband Member
 
Join Date: May 2007
Posts: 42
Send a message via AIM to yohed55
Default Re: Batch Scripting

How are you running the batch script on a server?

You should probably look up VBScript.

-Sam
__________________

yohed55 is offline   Reply With Quote
Old 07-08-2007, 07:18 PM   #3
Solid State Member
 
Join Date: Jul 2007
Posts: 16
Default Re: Batch Scripting

This is a windows Batch script
It runs constantly... It doesnt get closed
XylexRayne is offline   Reply With Quote
Old 07-08-2007, 08:56 PM   #4
Solid State Member
 
Join Date: Jul 2007
Posts: 16
Default Re: Batch Scripting

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

-Xylex
XylexRayne is offline   Reply With Quote
Old 07-09-2007, 07:48 AM   #5
Golden Master
 
DJ-CHRIS's Avatar
 
Join Date: Apr 2006
Posts: 5,203
Send a message via AIM to DJ-CHRIS Send a message via MSN to DJ-CHRIS Send a message via Yahoo to DJ-CHRIS
Default Re: Batch Scripting

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.
DJ-CHRIS is offline   Reply With Quote
Old 07-09-2007, 09:41 AM   #6
Solid State Member
 
Join Date: Jul 2007
Posts: 16
Default Re: Batch Scripting

Awesome Thanx, will do!
__________________

XylexRayne is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 01:20 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0