Saturday 20 July 2013

Top 3 Command Prompt Tricks and Hacks

Windows Command Prompt might seems to be very boring or relatively useless at first glance but as anyone who has ever used the Command Prompt very often can tell you, there’s much to love!!
Command Prompt Tricks and Hacks
Command Prompt Tricks and Hacks

Command Prompt Tricks and Hacks

Check Out some amazing Command Prompt Tricks.I am Updating cmd tricks while learning. I found found some Command Prompt tricks i collected few years ago while cleaning junk from my pc last night.
  • Manage your Backups through CMD

Thanks to the robocopy command, you don’t need to use Window’s backup software or install a third party program to manage your backups.

Just execute robocopy c:\users\tim\documents f:\backup\documents /copyall /e /r:0 /dcopy:t /mir, obviously replacing the source and destination folders with whatever you’d like to backup and where. The robocopy command with these options functions identically to an incremental backup software tool, keeping both locations in sync.

You don’t have the robocopy command if you’re using Windows XP or earlier. However, you do have the xcopy command, which can be used to do something very similar: xcopy c:\users\tim\documents f:\backup\documents /c /d /e /h /i /k /q /r /s /x /y.

No matter which command you choose to use, just create a script file containing the command and schedule it to run in Task Scheduler and you’ll have your own custom made backup solution.

I’ve chosen to use the robocopy command on my personal computers as my only local backup solution because I like the level of control it gives me. Hopefully you take that as a vote of confidence in this incredibly useful Command Prompt trick.

  • Matrix Wall Command Prompt

1. Click Start-> run -> notepad.
2. Now copy the code below
@echo off
color 0a
:top
echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%
goto top
3. After copying the code, now save your notepad file as crazylearner.bat
4. Now click on the filename.bat, you can see matrix code in a cmd prompt now press ALT + ENTER.
5. Matrix code will be displayed.
Command Prompt Tricks and Hacks
Command Prompt Tricks and Hacks

  • How to create an un-deletable folder

  1. Click on Start.
  2. Click on Run. Type in “cmd” without quotes.
  3. In the Command Prompt Window that opens, type the name of the drive you wish to create your folder in the format <drive-name>: and press Enter. e.g. If you wish to create the undeletable folder in D drive, type “D:” without the quotes. Note that the folder cannot be created in the root of C:/ drive (if C: is your system drive).
  4. Type this command- “md con\” or “md lpt1\” without the quotes and press Enter. You can choose any of the keywords given above as the name of your folder.
Now Windows will create an UN-deletable, UN-renamable folder in the drive you entered in Step 3. However the folder can be renamed to another keyword using Windows Explorer.
Tips
  • Get Installed Driver Information
driverquery
It can be very useful when troubleshooting to know what drivers are installed on a system. This
command will give you a complete listing of the drivers and when they were installed.
  • Copy Files Via Infrared Port
irftp filename.ext
This will fire up the wireless link dialog so that you can copy the specified file via an infrared port.
  • Monitor Port Activity
netstat -a 30
This will show you all of the TCP/IP ports that are being used on your system and what they are
connecting to (or being connected from). It will continue to monitor these ports and refresh the
information every 30 seconds. You can change the refresh rate by changing the number at the end of the
command.

No comments:

Post a Comment