Showing posts with label Batch File. Show all posts
Showing posts with label Batch File. Show all posts

Saturday, March 22, 2014

How To Install Windows From USB

1.    Format Your USB Key

Plug in your USB key and back up any existing data stored on it. You’ll need to format the key before you can make it a bootable device.



Open up a Command Prompt as an Administrator. You can do this by finding the cmd.exe in your Windows/System32 folder, right-clicking the executable, and selecting “Run as Administrator”. Alternatively, type CMD in the Start Menu search field and activate the Command Prompt using Ctrl + Shift + Enter. 


You should be under c:\Windows\system32 (assuming your Windows partition is the C drive). Type “diskpart” in the command line to enter the Disk Partition command line tool, which lets you format and create partitions on active disks.

Type “list disk” to reveal a list of all your active disks, each of which is associated with a number. Make a note of which one is your USB key, based on the capacity. In our screenshot below, our USB drive is Disk 6 (8GB).


Next, type the following commands, one at a time:

Saturday, July 23, 2011

Programming A Batch File

Batch files are really important when it comes to execute a set of DOS commands every time. Basically batch file programming is nothing but the Windows version of Unix Shell Programming. In the article we’ll try to learn the basics of the batch file coding.
The Basic:
Batch file is basically a executable file which executes the definite set of commands in one go. It is important "not to name a batch file after the name of any DOS command" as if done so, the batch file will not execute.

Creating a Batch File:
To create a batch file you do not need any separate kind of editor, Batch file can be created by two methods :-
1)Notepad
2)DOS - Open command prompt and type EDIT(2k/XP) a blue window will open very similar to Notepad.