Thread: cmd tricks


Forum: General Computer Topics

CMD is short for commander. It is great for a lot of things and it's also very clean. ----------------------------------------------------------------------------------------------

Results 1 to 3 of 3
  1. #1
    VIP Member wilson1980's Avatar
    Join Date
    Apr 2006
    Location
    Dundee, United Kingdom
    Posts
    1,655
    DW Cash
    457
    Downloads
    0
    Uploads
    0
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)

    cmd tricks

    CMD is short for commander.


    It is great for a lot of things and it's also very clean.

    -----------------------------------------------------------------------------------------------
    Lets learn how to make the computer shut down everytime it's booted, shall we?
    -----------------------------------------------------------------------------------------------

    First open CMD,

    Next open notepad.

    If you write "start shutdown -r" in CMD and press enter, your computer will restart. Also if you write the same in "run".
    (Change -r to -s to shutdown computer, or write -l to logg off.)

    If you write
    ---------------------------------------
    @echo off

    cls
    start shutdown -r

    cls
    goto :a
    ---------------------------------------
    in notepad and save it as something.bat (bat is important) and then open it, your computer will restart in the same way.

    So, lets get into autostart. Put that bat file in autostart (autostart can be found in start menu) and each time your
    computer is booted it will start that file and your computer will restart.
    If you write the next script your computer will try to shutdown several times at once. it will freak for about half a minute
    and then turn off.

    Lets get a better understanding how scripts works. The above script shuts down your computer, but a bat file normaly opens
    CMD and does whatever you told it to do.

    @echo off - This is where you put commands that shouldn't be shown as text. For example cls. You don't want that to be text,
    it's a command.

    cls - This one is pretty good, it clears the text in the CMD screen

    CMD - This command gives you a new CMD session.

    start - this triggers stuff, in this case it's shutdown.

    color - changes the colour in the cmd window, I recommend writing "color 0a", which is a green color thats really cool
    on a black window.

    title - write "title something" to change title.

    goto :a - This one is really, really, really, really cool. It's used for making loops and some more advanced stuff that I
    wont go into. Lets say you write
    --------------------------------------
    @echo off
    :a
    cls
    start shutdown -r

    cls
    goto :a
    --------------------------------------

    The goto :a tells you to go to :a higher up in the script. so it starts the script again, then it does the goto :a command
    again and the script reloads. Basicaly a loop. You can change the "a" to whatever you want, for example "error". This is
    only to make it easier for you to read your script.

    The : infront of "a" must stay where it is.
    Bad example:
    goto: a

    Good example:
    goto :a

    --------------------------------------

    dir - This shows you the files in the directory you are in.

    dir /s - This shows you all the files on your computer.

    echo - write "echo something" and it will be as a text in cmd.

    echo. This is a linebrake.

    cd - Write cd followed up with a location, to go there in cmd. For example "cd c:\windows".

    cd .. - This goes back one step in the directory. For example if your in c:\windows and write "cd .." you go back to c:\.

    So now you know the basics, which we'll use to make you computer do stuff. In cmd you can write "help" to get a list of most
    commands.

    Moving away from learning commands now.

    -----------------------------------------------------------------------------------------------
    Lets make a spamm script.
    -----------------------------------------------------------------------------------------------

    ---------------------------- -------------------
    @echo off
    cls
    :a
    start notepad.exe
    goto :a

    -----------------------------------------------
    this script will continue to open notepad until you close cmd. Not recommended to run this on a slow computer.
    As we said before, "start" triggers things, this script triggers notepad and then the loop (goto :a) is triggered.

    -----------------------------------------------------------------------------------------------
    Lets just mess around.
    -----------------------------------------------------------------------------------------------

    ---------------------------- -------------------
    @echo off
    cls
    :a
    taskkill /im explorer.exe /f
    goto :a
    -----------------------------------------------

    This will close the bar where start menu and tasks are shown, for example if you open internet you will see it at the bottom
    of the screen on the explorer bar.
    Closing this will leave people with little things to do.



  2. #2
    VIP Member wilson1980's Avatar
    Join Date
    Apr 2006
    Location
    Dundee, United Kingdom
    Posts
    1,655
    DW Cash
    457
    Downloads
    0
    Uploads
    0
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)

    watch star wars in command prompt

    heres a few more things ive learned and picked up along the way


    open cmd and type telnet in cmd.
    once telnet showing type in: o towel.blinkenlights.nl.

    not sure how long it goes on for lol i just saw it there and thought to share it..

    im on vista and couldnt get telnet on cmd so i done the following

    # Open the Start Bar and search Telnet.
    # If it does not show anything in Programs do the following.
    # Open Control Panel.
    # Click on Programs.
    # You will see Programs and Features.
    # Under that click Turn Windows features on or off.
    # Click Continue on the Pop-Up.
    # A dialogue box will show up.
    # It might take a while to populate the list.
    # Go down and look under Tablet PC Optional Components.
    # It will say Telnet Client.
    # Check the box and do whatever Windows says. It may take a while.
    # Once the green bar thing box is gone repeat Step One.
    # Then click Telnet there and you are ready to go

    once it finished i opened the start menu and in run i typed telnet
    and enter the towel.blinkenlights.nl.

  3. #3
    VIP Member wilson1980's Avatar
    Join Date
    Apr 2006
    Location
    Dundee, United Kingdom
    Posts
    1,655
    DW Cash
    457
    Downloads
    0
    Uploads
    0
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)

    Great keyboard shortcuts

    Getting used to using your keyboard exclusively and leaving your mouse behind will make you much more efficient at performing any task on any Windows system :

    Windows key + R = Run menu

    This is usually followed by:
    cmd = Command Prompt
    iexplore + "web address" = Internet Explorer
    compmgmt.msc = Computer Management
    dhcpmgmt.msc = DHCP Management
    dnsmgmt.msc = DNS Management
    services.msc = Services
    eventvwr = Event Viewer
    dsa.msc = Active Directory Users and Computers
    dssite.msc = Active Directory Sites and Services
    Windows key + E = Explorer

    ALT + Tab = Switch between windows

    ALT, Space, X = Maximize window

    CTRL + Shift + Esc = Task Manager

    Windows key + Break = System properties

    Windows key + F = Search

    Windows key + D = Hide/Display all windows

    CTRL + C = copy

    CTRL + X = cut

    CTRL + V = paste

    Also don't forget about the "Right-click" key next to the right Windows key on your keyboard. Using the arrows and that key can get just about anything done once you've opened up any program.

    Keyboard Shortcuts

    [Alt] and [Esc] Switch between running applications

    [Alt] and letter Select menu item by underlined letter

    [Ctrl] and [Esc] Open Program Menu

    [Ctrl] and [F4] Close active document or group windows (does not work with some applications)

    [Alt] and [F4] Quit active application or close current window

    [Alt] and [-] Open Control menu for active document

    Ctrl] Lft., Rt. arrow Move cursor forward or back one word

    Ctrl] Up, Down arrow Move cursor forward or back one paragraph

    [F1] Open Help for active application

    Windows+M Minimize all open windows

    Shift+Windows+M Undo minimize all open windows

    Windows+F1 Open Windows Help

    Windows+Tab Cycle through the Taskbar buttons

    Windows+Break Open the System Properties dialog box

    acessability shortcuts

    Right SHIFT for eight seconds........ Switch FilterKeys on and off.

    Left ALT +left SHIFT +PRINT SCREEN....... Switch High Contrast on and off.

    Left ALT +left SHIFT +NUM LOCK....... Switch MouseKeys on and off.

    SHIFT....... five times Switch StickyKeys on and off.

    NUM LOCK...... for five seconds Switch ToggleKeys on and off.

    explorer shortcuts

    END....... Display the bottom of the active window.

    HOME....... Display the top of the active window.

    NUM LOCK+ASTERISK....... on numeric keypad (*) Display all subfolders under the selected folder.

    NUM LOCK+PLUS SIGN....... on numeric keypad (+) Display the contents of the selected folder.

    NUM LOCK+MINUS SIGN....... on numeric keypad (-) Collapse the selected folder.

    LEFT ARROW...... Collapse current selection if it's expanded, or select parent folder.

    RIGHT ARROW....... Display current selection if it's collapsed, or select first subfolder.

    Type the following commands in your Run Box (Windows Key + R) or Start Run

    devmgmt.msc = Device Manager
    msinfo32 = System Information
    cleanmgr = Disk Cleanup
    ntbackup = Backup or Restore Wizard (Windows Backup Utility)
    mmc = Microsoft Management Console
    excel = Microsoft Excel (If Installed)
    msaccess = Microsoft Access (If Installed)
    powerpnt = Microsoft PowerPoint (If Installed)
    winword = Microsoft Word (If Installed)
    frontpg = Microsoft FrontPage (If Installed)
    notepad = Notepad
    wordpad = WordPad
    calc = Calculator
    msmsgs = Windows Messenger
    mspaint = Microsoft Paint
    wmplayer = Windows Media Player
    rstrui = System Restore
    netscp6 = Netscape 6.x
    netscp = Netscape 7.x
    netscape = Netscape 4.x
    waol = America Online
    control = Opens the Control Panel
    control printers = Opens the Printers Dialog

    internetbrowser

    type in u're adress "google", then press [Right CTRL] and [Enter]
    add www. and .com to word and go to it



    For Windows XP:

    Copy. CTRL+C
    Cut. CTRL+X
    Paste. CTRL+V
    Undo. CTRL+Z
    Delete. DELETE
    Delete selected item permanently without placing the item in the Recycle Bin. SHIFT+DELETE
    Copy selected item. CTRL while dragging an item
    Create shortcut to selected item. CTRL+SHIFT while dragging an item
    Rename selected item. F2
    Move the insertion point to the beginning of the next word. CTRL+RIGHT ARROW
    Move the insertion point to the beginning of the previous word. CTRL+LEFT ARROW
    Move the insertion point to the beginning of the next paragraph. CTRL+DOWN ARROW
    Move the insertion point to the beginning of the previous paragraph. CTRL+UP ARROW
    Highlight a block of text. CTRL+SHIFT with any of the arrow keys
    Select more than one item in a window or on the desktop, or select text within a document. SHIFT with any of the arrow keys
    Select all. CTRL+A
    Search for a file or folder. F3
    View properties for the selected item. ALT+ENTER
    Close the active item, or quit the active program. ALT+F4
    Opens the shortcut menu for the active window. ALT+SPACEBAR
    Close the active document in programs that allow you to have multiple documents open simultaneously. CTRL+F4
    Switch between open items. ALT+TAB
    Cycle through items in the order they were opened. ALT+ESC
    Cycle through screen elements in a window or on the desktop. F6
    Display the Address bar list in My Computer or Windows Explorer. F4
    Display the shortcut menu for the selected item. SHIFT+F10
    Display the System menu for the active window. ALT+SPACEBAR
    Display the Start menu. CTRL+ESC
    Display the corresponding menu. ALT+Underlined letter in a menu name
    Carry out the corresponding command. Underlined letter in a command name on an open menu
    Activate the menu bar in the active program. F10
    Open the next menu to the right, or open a submenu. RIGHT ARROW
    Open the next menu to the left, or close a submenu. LEFT ARROW
    Refresh the active window. F5
    View the folder one level up in My Computer or Windows Explorer. BACKSPACE
    Cancel the current task. ESC
    SHIFT when you insert a CD into the CD-ROM drive Prevent the CD from automatically playing.

    Use these keyboard shortcuts for dialog boxes:

    To Press
    Move forward through tabs. CTRL+TAB
    Move backward through tabs. CTRL+SHIFT+TAB
    Move forward through options. TAB
    Move backward through options. SHIFT+TAB
    Carry out the corresponding command or select the corresponding option. ALT+Underlined letter
    Carry out the command for the active option or button. ENTER
    Select or clear the check box if the active option is a check box. SPACEBAR
    Select a button if the active option is a group of option buttons. Arrow keys
    Display Help. F1
    Display the items in the active list. F4
    Open a folder one level up if a folder is selected in the Save As or Open dialog box. BACKSPACE

    If you have a Microsoft Natural Keyboard, or any other compatible keyboard that includes the Windows logo key and the Application key , you can use these keyboard shortcuts:

    Display or hide the Start menu. WIN Key
    Display the System Properties dialog box. WIN Key+BREAK
    Show the desktop. WIN Key+D
    Minimize all windows. WIN Key+M
    Restores minimized windows. WIN Key+Shift+M
    Open My Computer. WIN Key+E
    Search for a file or folder. WIN Key+F
    Search for computers. CTRL+WIN Key+F
    Display Windows Help. WIN Key+F1
    Lock your computer if you are connected to a network domain, or switch users if you are not connected to a network domain. WIN Key+ L
    Open the Run dialog box. WIN Key+R
    Open Utility Manager. WIN Key+U

    accessibility keyboard shortcuts:

    Switch FilterKeys on and off. Right SHIFT for eight seconds
    Switch High Contrast on and off. Left ALT+left SHIFT+PRINT SCREEN
    Switch MouseKeys on and off. Left ALT +left SHIFT +NUM LOCK
    Switch StickyKeys on and off. SHIFT five times
    Switch ToggleKeys on and off. NUM LOCK for five seconds
    Open Utility Manager. WIN Key+U

    shortcuts you can use with Windows Explorer:

    Display the bottom of the active window. END
    Display the top of the active window. HOME
    Display all subfolders under the selected folder. NUM LOCK+ASTERISK on numeric keypad (*)
    Display the contents of the selected folder. NUM LOCK+PLUS SIGN on numeric keypad (+)
    Collapse the selected folder. NUM LOCK+MINUS SIGN on numeric keypad (-)
    Collapse current selection if it's expanded, or select parent folder. LEFT ARROW
    Display current selection if it's collapsed, or select first subfolder. RIGHT ARROW



Similar Threads

  1. Football Tricks
    By yottabit in forum Sport in General
    Replies: 0
    Last Post: 15th August 2007, 00:52
  2. Mobile Tricks
    By yottabit in forum Mobile Unlocking
    Replies: 0
    Last Post: 11th August 2007, 01:00
  3. Some Useful Windows Tricks
    By tanvirbutt in forum PC Problems
    Replies: 1
    Last Post: 14th July 2007, 12:12
  4. Wii Tricks
    By maggot in forum Nintendo Wii Forums
    Replies: 14
    Last Post: 14th January 2007, 17:25
  5. Tricks of the trade
    By Scott in forum General Chat
    Replies: 4
    Last Post: 31st May 2001, 16:58

User Tag List

Tags for this Thread

View Tag Cloud

Important Keywords:

backup, bar, bet, box, client, command prompt, computer, desktop, documents, drive, efficient, error, forward, google, green, help, internet, list, media, microsoft, network, printers, restart, restore, save, screen, scripts, search, shortcuts, system, ta

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •