I need help with this Batch File

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

I need help with this Batch File
  1. Unread #1 - Aug 9, 2010 at 10:18 AM
  2. demonreaper1000
    Joined:
    Aug 9, 2010
    Posts:
    1
    Referrals:
    0
    Sythe Gold:
    0

    demonreaper1000 Newcomer

    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
     
  3. Unread #2 - Aug 9, 2010 at 1:38 PM
  4. cazax
    Joined:
    Nov 13, 2007
    Posts:
    457
    Referrals:
    0
    Sythe Gold:
    0

    cazax Forum Addict

    I need help with this Batch File

    And your problem is?
     
  5. Unread #3 - Aug 9, 2010 at 2:44 PM
  6. Markla709
    Joined:
    Dec 20, 2009
    Posts:
    436
    Referrals:
    1
    Sythe Gold:
    0

    Markla709 Forum Addict
    Banned

    I need help with this Batch File

    It works fine.

    I tried it
     
  7. Unread #4 - Aug 9, 2010 at 3:39 PM
  8. cp
    Joined:
    Jan 30, 2007
    Posts:
    3,278
    Referrals:
    6
    Sythe Gold:
    0

    cp an cat
    Banned

    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 >

Users viewing this thread
1 guest


 
 
Adblock breaks this site