Tuesday, January 20, 2015

Top 5 Command for "Windows"

 Here is the list of 5 useful commands and tricks for Windows command line.


1. Super Hide your files
I have posted detailed post regarding this before also . Besides normal hidden files, windows file system provides another attribute for files that makes them super hidden so that they aren’t visible form explorer or with normal dir command. Use the command
attrib +s +h pathtofile to super hide a file. Replace + symbol with - to remove super hidden attribute from file.You can also use this command to show hidden files in usb drives, simply use
attrib -s -h *.* c command.

2. Join multiple mp3 files
Here’s a nice trick that otherwise would require some software to perform. You can join multiple mp3 files to form a single mp3 file. Simply move to the folder in command line where mp3 files are stored that you want to combine and run the command
copy /b *.mp3 newfile.mp3
The wildcard *.mp3 will combine all mp3 files to form a newfile.mp3 file. You can control which files are combined using wildcard parameters.

3. Map a Drive Letter to a Folder
Most of the time, our hard drives get filled with huge amount of data folder, files etc that moving to a folder you occasionally use becomes a heck. However, there’s a dos command that lets you map a drive letter to a folder. e.g. to map the folder C:\windows to M drive use the command:
subst M: C:\Windows
However the mapped drive gets lost once you restart your pc, you can then create a batch file including the above command and schedule it to run at system startup.

4. Change colors of command Window
Perhaps you need to take a print out of dos window and don’t want to waste ink on black background of dos window. Windows command line provides a command to change background and text color of dos window in a snap.Simply use color bf to change colors. b is the code for background color and f is code for text color. To know color codes type color /? at command line.

5. Use previously entered Command
Just typed a long command moments ago and need to run that again but the effort involved to type again is making you sick! But don’t worry as command line keeps track of your previously entered commands which are accessible by pressing F7 key.
Command History
Alternatively you can use Up Arrow key to use earlier commands you used.F1 & F2 also offer similar kind of functionality but in a different way, try them out.

0 comments:

Post a Comment

Blog Archive