1. Welcome to PHCorner Forums. Take a moment to Sign up and gain unlimited access and extra privileges that guests are not entitled to, such as:

    All that and more! Registration is quick, simple and absolutely free. Join our community today!

Tutorial access some program easily using notepad and cmd

Discussion in 'Coding, Programming' started by connectibyte, May 29, 2015.

  1. steps:
    1.)open notepad
    2.)type this code
    echo off
    title Select Program
    echo options

    echo 1. Calculator
    echo 2. word
    echo 3. cmd
    echo 4. Notepad
    echo 5. Lock PC
    echo 6. Log Off
    echo 7. Exit

    set /p var=What Would you like to open? (The Selection no)

    IF '%var%' == '1' GOTO calc
    IF '%var%' == '2' GOTO Word
    IF '%var%' == '3' GOTO cmd
    IF '%var%' == '4' GOTO Note
    IF '%var%' == '5' GOTO SU
    IF '%var%' == '6' GOTO LO
    If '%var%' == '7; GOTO Exit

    msg * That selection does not exist please try again!
    goto start

    goto start

    cd "C:\Program Files\Microsoft Office\OFFICE11\"
    start WINWORD.EXE
    goto start

    start cmd
    goto start

    start %SystemRoot%\system32\notepad.exe
    goto start

    start %windir%\System32\rundll32.exe user32.dll,LockWorkStation

    set /p LOC=msg Are you sure yo want to logg off? (Y/N)
    IF '%LOC%' == 'Y' GOTO LOC
    IF '%LOC%' == 'N' GOTO LONC
    goto start

    start %windir%\System32\shutdown /l

    msg * Log of Aborted!
    goto start
    3.)save it as option.bat and ======choose all files SET DESTINATION TO DESKTOP FOR EASY ACCESS
    RUN IT
    Odlanyer22 likes this.
  2. palitan ang ? sa ?echo off ng @
  3. nice post ts! thanks for sharing.. mas gaganda yan if Vbscript on hta para may GUI ;)
  4. jake021

    jake021 Grasshopper Established

    thanks for sharing sir :) god blessed :)
  5. salamat ts keep sharing po :)
  6. bakit hinde nmn ma access po." the selction dose not exist". ang nka lagay.. hinde po ako programing pero gusto ko pong matoto ng mga ganito.. slmat po..
Tags / Keywords:

Share This Page