Pages

Showing posts with label Command Prompt. Show all posts
Showing posts with label Command Prompt. Show all posts

Sunday, July 20, 2014

All in One Line

Friends isn't it really hard to change the directory in cmd by typing or copying the full path manually. Let’s find an easy way to do it. Even the UI of the command prompt is not much friendly, it support many cool things. Did u know that you can drag and drop your file into cmd to change the path.




Now you are in   C:\Users\Nadeesha>
Assume that you need to change your directory to the G:\cmd\new folder





 After you drag your folder into cmd it will look like this;




But just doing that will not allow you to change your directory .So u need to type few more words

cd G:\cmd\new && G:

Is it possible to run commands simultaneously? Yes, to do that you need to put “&&” in between two commands and cmd will start to execute commands from right-hand side. In this case it will first change the driver G: and then execute cd G:\cmd\new. After executing all commands it will give below output.




Saturday, May 31, 2014

How to format a USB flash drive to NTFS using command prompt

Insert USB and run cmd (windows+R  and Type cmd and run).Then type DISKPART (you can use uppercase or lowercase).Next, type LIST DISK and then you will see the below output
1
figure- 01
In my case I am using 8 GB pen drive. So the pen drive I am using is displayed as Disk 2 in my list..Now we have to select the disk type SELECT DISK 2
For more conventions again type LIST DISK .In this process you should be aware about the USB drive you are going to select. Because if you select wrong USB drive definitely you will lose your data.
Now you can see a star mark in front of the disk name
3
figure- 02
Type CLEAN
4
figure- 03
Then type CREATE PARTITION PRIMARY  and SELECT PARTITION1  output as bellows
6
figure- 04
FORMAT FS=NTFS QUICK
7
figure- 05
Finally type  ACTIVE  & then ASSIGN
Now your Bootable USB driver is ready!:)