Jump to content

  •  

  • iBotModz CBox


    Photo

    DoS Scripts


    This topic has been archived. This means that you cannot reply to this topic.
    1 reply to this topic

    #1 OinkPig619

    OinkPig619

      Private Grade 2

    • Members+

    • 58 posts
    • Joined: 30-August 07

    Posted 30 December 2008 - 04:16 AM

    Ok here is a quick VBS script that you can sneak into batch files (assuming you know how to open other files with a batch file already) (it's really fairly simple just google that part)

    HERES WHAT YOU SHOULD PUT INTO NOTEPAD:

    Code:
    dim shell
    set shell=createobject("wscript.shell")
    shell.run "batchfile.bat"
    set shell=nothing
    set wshshell = wscript.CreateObject("WScript.Shell")
    Wshshell.run "Notepad"
    wscript.sleep 400
    wshshell.sendkeys "M"
    wscript.sleep 100
    wshshell.sendkeys "M"
    wscript.sleep 300
    wshshell.sendkeys "O"
    wscript.sleep 200
    wshshell.sendkeys "W"
    wscript.sleep 300
    wshshell.sendkeys "N"
    wscript.sleep 400
    wshshell.sendkeys "E"
    wscript.sleep 200
    wshshell.sendkeys "D"

    SAVE THIS FILE AS ALL TYPES .VBS

    shell.run "batchfile.bat"-this part isn't needed but I have it written down here to share with you, this will open a .bat file from a .vbs file, very convenient to create loops/orders

    I made this in school:
    Run the VBS file (can be named anything) it has the command line as posted above:
    shell.run "owned.bat"
    So it: Opens up a batch file with a series of goto commands which loops
    echo YOU'VE BEEN OWNED! --in multiple flashing colors
    then opens up notepad and acts as though a person is typing to you:
    You have just been owned my friend

    ENJOY and experiment

    NOW THE SUPER MENU:

    Ok this is a script I wrote in DOS format (Command prompt mini-program) which allowed me to delete every shortcut on my desktop but this program.

    In order to do that i just moved all the shortcuts to a folder i named: Hello in m C drive, as you can read in the easy to read script below

    It simply creates a menu in a delightful black background and pink lettering which guides you to each choice and automatically opens up your selection

    NOW, if you want to use this you need to edit the script to match your own parameters.

    As you should hopefully already know Echo simply reflects characters in your command prompt specified by whatever follows "echo" and a space, thus allowing you to change my: Welcome to Nates Awesome Menu to whatever floats your boat.

    ECHO does NOT open anything, it simply gives the user something to read and correspond their choices with, the real commands lies in this part:


    Code:
    set choice=
    set /p choice=Type the Character to continue:
    if not '%choice%'=='' set choice=%choice:~0,1%
    if '%choice%'=='1' start firefox.exe
    if '%choice%'=='2' start Iexplore.exe
    if '%choice%'=='3' start C:\Hello\Wow.lnk
    if '%choice%'=='4' start C:\Hello\Frozen.lnk
    if '%choice%'=='5' start C:\Hello\realmlist.lnk
    if '%choice%'=='6' start MySpace
    if '%choice%'=='7' start Facebook | Welcome to Facebook
    if '%choice%'=='8' goto Menu2
    if '%choice%'=='9' start C:\Hello\Message.lnk
    if '%choice%'=='S' goto Menu3
    if '%choice%'=='W' start C:\Hello\wmplayer.lnk
    if '%choice%'=='X' goto Menu4
    if '%choice%'=='C' start C:\Hello\Computer.lnk

    In order to designate a choice corresponding with what you "echoed" (for example echo 1. Firefox me baby, you want the user to type in a 1 and then hit enter to open the firefox.exe) You must set the if '%choice%'=='1' start firefox.exe
    Make sure your echo corresponds with the programs you wish to open.
    To open a file within your C drive directory simply read the code above "start C:\Hello\Computer.lnk
    NOTE: you will have trouble opening to a folder with spaces in its name, thus I prompt you to make a folder with a simple name like I did, such as Hello.

    THE FULL SCRIPT:


    Code:
    Menu
    cls
    @echo off
    color 0d
    Echo ------------------------------------------------------------------------------
    echo.
    Echo Welcome to Nate's Awesome Menu
    Echo.
    Echo You are at the Main Menu!
    Echo.
    Echo Simply choose an option given by the menu and hit enter to proceed.
    Echo.
    ECHO 1. Firefox me baby!
    ECHO 2. Internet explorer
    Echo 3. World of Warcraft
    Echo 4. Warcraft 3
    Echo 5. Realmlist
    Echo 6. Myspace
    Echo 7. Facebook
    Echo 8. Myspace and Facebook
    Echo 9. Windows Live Messenger
    Echo S. Myspace, Facebook, and Windows Live Messenger
    Echo W. Windows Media Player
    Echo X. Submenu with less commonly used items
    Echo C. My computer
    Echo.
    set choice=
    set /p choice=Type the Character to continue:
    if not '%choice%'=='' set choice=%choice:~0,1%
    if '%choice%'=='1' start firefox.exe
    if '%choice%'=='2' start Iexplore.exe
    if '%choice%'=='3' start C:\Hello\Wow.lnk
    if '%choice%'=='4' start C:\Hello\Frozen.lnk
    if '%choice%'=='5' start C:\Hello\realmlist.lnk
    if '%choice%'=='6' start MySpace
    if '%choice%'=='7' start Facebook | Welcome to Facebook
    if '%choice%'=='8' goto Menu2
    if '%choice%'=='9' start C:\Hello\Message.lnk
    if '%choice%'=='S' goto Menu3
    if '%choice%'=='W' start C:\Hello\wmplayer.lnk
    if '%choice%'=='X' goto Menu4
    if '%choice%'=='C' start C:\Hello\Computer.lnk
    Echo.
    
    :Error
    Echo ERROR
    goto Menu
    
    :Menu2
    Echo.
    Echo starting myspace and facebook...
    Echo.
    start firefox MySpace
    start firefox Facebook | Welcome to Facebook
    goto Menu
    
    :Menu3
    Echo.
    Echo starting myspace, facebook, and windows live messenger
    Echo.
    start firefox MySpace
    start firefox Facebook | Welcome to Facebook
    start C:\Hello\Message.lnk
    goto Menu
    
    :Menu4
    @echo off
    cls
    Echo ------------------------------------------------------------------------------
    Echo Welcome to Nate's Awesome SUB MENU
    Echo.
    Echo You are at the SUB-MENU!
    Echo.
    Echo You know what to do now, choose one.
    Echo.
    ECHO 1. Ventrilo
    ECHO 2. Microsoft Word
    Echo 3. Limewire
    Echo 4. Skype
    Echo 5. Hamachi
    Echo 6. Oblivion
    Echo 7. Battlefield
    Echo 8. Fraps
    Echo 9. Guild Wars
    set choice=
    set /p choice=Type the Character to continue:
    if not '%choice%'=='' set choice=%choice:~0,1%
    if '%choice%'=='1' start C:\Hello\Vent.lnk
    if '%choice%'=='2' start C:\Hello\Word.lnk
    if '%choice%'=='3' start C:\Hello\Limewire.lnk
    if '%choice%'=='4' start C:\Hello\Skype.lnk
    if '%choice%'=='5' start C:\Hello\Hamachi.lnk
    if '%choice%'=='6' start C:\Hello\Oblivion.lnk
    if '%choice%'=='7' start C:\Hello\Battlefield.lnk
    if '%choice%'=='8' start C:\Hello\Fraps.lnk
    if '%choice%'=='9' start C:\Hello\Guild.lnk
    echo.
    
    :Error
    Echo ERROR
    goto Menu

    This Script is somewhat similar to LuA, I'd love to sit here and explain every aspect, including the sub-menus but I found that it's better to learn by observation

    Copy and paste this into notepad
    save as all files type
    (whatevernameyouwant).bat


    save a shortcut to your desktop, but the location of the file itself doesn't really matter

    #2 miinaturvat

    miinaturvat

      miiinaturvat

    • Donors+

    • 927 posts
    • Joined: 09-April 08

    Posted 30 December 2008 - 06:44 AM

    Ok here is a quick VBS script that you can...


    I'm pretty sure VBS stands for Visual Basic Script, so you just said 'Visual Basic Script Script' :D