Adblock breaks this site

I need help with this Batch File

Discussion in 'Programming General' started by demonreaper1000, Aug 9, 2010.

  1. demonreaper1000

    demonreaper1000 Newcomer

    Joined:
    Aug 9, 2010
    Posts:
    1
    Referrals:
    0
    Sythe Gold:
    0
    I need help with this Batch File

    @echo off
    Set /p name=What is your name:
    If "%name%"=="joe smoe" goto pass
    :wrong
    cls
    echo logging off
    Pause
    shutdown -s -f -t 00
    : pass
    cls
    Set /p password=Enter Your Password:
    If "%password%"=="sythe" goto end
    echo ACCESS DENIED!!!
    Pause
    goto wrong
    :end
     
  2. cazax

    cazax Forum Addict

    Joined:
    Nov 13, 2007
    Posts:
    457
    Referrals:
    0
    Sythe Gold:
    0
    I need help with this Batch File

    And your problem is?
     
  3. Markla709

    Markla709 Forum Addict
    Banned

    Joined:
    Dec 20, 2009
    Posts:
    436
    Referrals:
    1
    Sythe Gold:
    0
    I need help with this Batch File

    It works fine.

    I tried it
     
  4. cp

    cp an cat
    Banned

    Joined:
    Jan 30, 2007
    Posts:
    3,278
    Referrals:
    6
    Sythe Gold:
    0
    I need help with this Batch File

    Why would you say logging off and then pause it? Someone could close the window and nothing would happen. :O

    And to log off, you can use shutdown /l or simply 'logoff'
     
< Removing RS top? | Need Automatic Pin Website >


 
 
Adblock breaks this site