Just doing this for fun.
This is only some of the code i am putting on. Theirs is alot more than whats showen.
I need help figuring out how to get the %Username% to read a txt file name or inside of a txt file. Eather one will work. Ive tryed some but never ended up working. Like having %Username%==somthing and can be changed by inside of the console. It must save it so everytime it launches it will be that user that the person has put in.Code:@echo off title Console By. Seritin if not exist C:\PanelFolder goto FolderMake else goto U :FolderMake mkdir C:\PanelFolder mkdir C:\PanelFolder\User mkdir C:\PanelFolder\UserLog mkdir C:\PanelFolder\Pass mkdir C:\PanelFolder\PassLog mkdir C:\PanelFolder\Color if not exist C:\PanelFolder echo. >C:\PanelFolder\User\Login.txt if not exist C:\PanelFolder echo. >C:\PanelFolder\Pass\War.txt echo. >C:\PanelFolder\UserLog\Username.txt echo. >C:\PanelFolder\PassLog\Password.txt if exist C:\PanelFolder\Color\1.txt color 1 if exist C:\PanelFolder\Color\2.txt color 2 if exist C:\PanelFolder\Color\4.txt color 4 if exist C:\PanelFolder\Color\5.txt color 5 if exist C:\PanelFolder\Color\6.txt color 6 if exist C:\PanelFolder\Color\7.txt color 7 :U cls set /p Username=Enter User: echo. %Username%>>C:\PanelFolder\UserLog\Username.txt if %Username%==Seritin goto Menu if %Username% NEQ %Name% goto InvalidU :InvalidU cls echo Invalid User set /p InvalidUser=Enter User: if %InvalidUser%==Seritin goto Menu if %InvalidUser% NEQ Seritin goto InvalidU
If you need the code for the adding of the user or the full thing ill post it. Just ask.
[Saved as .bat]
Thank you.
Closed Thread
Results 1 to 2 of 2
Similar Threads
-
Batch "file creation from a text file, Placed into a created directory
By Muther in forum ProgrammingReplies: 5Last Post: 24th Sep 2015, 18:29 -
Need help with ffmpeg batch file
By DarrellS in forum Video ConversionReplies: 3Last Post: 25th Jun 2012, 15:43 -
need some batch file help
By iamspuzzum in forum ComputerReplies: 6Last Post: 22nd Mar 2010, 16:19 -
Batch file
By Anurag in forum ComputerReplies: 16Last Post: 19th May 2009, 11:27 -
Batch file that can delete a specific file
By Dark_Raven in forum ProgrammingReplies: 1Last Post: 10th Jun 2008, 08:16