Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hello all.
I have created a network administrating and monitoring program with batch scripting and am now going back over it to update it. One thing i would like to do is for it to save login input to a txt file (just the session name, see below)
I would like the file to save input to an external txt file after the user enters his/her name and presses enter. The program has 2500+ lines so i will give you snippets from it. This is the part where i would like the new script to go.
@echo off
color 0A
title MINOS V3.00
goto banner1:banner1
(banner here, excluded from example)
...
...
...:loginuserpass1
set /P C=Enter full name to continue: (User would enter name here and it would be save to a txt file)
if "%C%"=="" goto banner2
if "%C%"=="quit" goto quit
goto banner2So the user would enter thier name then hit enter and the name would be saved to the txt file. I cannot remember the command to do this as i have not used it in my program. Would be gratful if some1 could help. If any questions or you need more script just ask.\
( \/ )( )( \( )/ \ / __)
) ( )( ) (( () )\__ \
(_/\/\_)(__)(_)\_)\__/ (___/

how do i input this into my current script, i had a go by giving its own line, it created outfile.txt but wrote "ECHO is off"
( \/ )( )( \( )/ \ / __)
) ( )( ) (( () )\__ \
(_/\/\_)(__)(_)\_)\__/ (___/

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

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