VideoHelp Forum




Closed Thread
Results 1 to 2 of 2
  1. Just doing this for fun.

    This is only some of the code i am putting on. Theirs is alot more than whats showen.

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

    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.

  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    Please don't cross post. Once is enough.




Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!