Batch script to prepare Windows 7 Bootable Pendrive.

December 18, 2014 § Leave a comment

Its easy to prepare Windows 7 Bootable Pendrive if you know some commands. However, you will forget the commands and their sequence easily when you need to setup windows next time later. To overcome this problem i created a script for myself. I think it will be useful to you also.

Write the following commands to a text file and save it with .bat extension e.g PreparePendrive.bat and then right click on it and click Run as Administrator. But Beware:

  1. Keep a backup of the contents of your pendrive because it will be formatted.
  2. You have one hard disk in your computer and one pendrive. there is no other drive plugged in.

And then copy all the contents of the Windows 7 Bootable DVD to the pendrive. And Its ready to boot..

del DskPrtCmd.txt
REM ECHO DISKPART > DskPrtCmd.txt
ECHO LIST DISK >> DskPrtCmd.txt
ECHO SELECT DISK 1 >> DskPrtCmd.txt
ECHO CLEAN >> DskPrtCmd.txt
ECHO CREATE PARTITION PRIMARY >> DskPrtCmd.txt
ECHO SELECT PARTITION 1 >> DskPrtCmd.txt
ECHO ACTIVE >> DskPrtCmd.txt
ECHO FORMAT FS=NTFS QUICK >> DskPrtCmd.txt
ECHO ASSIGN >> DskPrtCmd.txt
ECHO EXIT >> DskPrtCmd.txt

diskpart /s DskPrtCmd.txt
del DskPrtCmd.txt
pause

Or if you are too lazy, download it from here: https://github.com/khairulhasanmd/Prepare-Win7-Bootable-Pendrive

Advertisements

Facebook like button project

March 4, 2012 § 1 Comment

(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));

Currently i m working on to implement the facebook like button on my website. This is for my LCD project.

And here is the damn thing.

About Me

May 26, 2011 § 1 Comment

I like to read novels, science fictions & horror stories, hearing songs, playing computer and mobile games, gossiping with friends, driving my bicycle and so…. so…….. many things……………..

As a student of electrical engineering, I like to read science and electrical related books also. My hobby is to build ‘Electronics and computer related projects’.

To build these projects, I have taken help from websites, books, and anything that could help me. My friends help me also. Special thanks to those friends who helped and helping me now also to build my projects.

I have learned basic course on Computer, Microsoft Office package programs, C Programming, Visual Basic 6.0, and VB.net. But I am not an expert programmer. I have learned those programs as my hobby. To build electronics projects I have learned the basics of electronics, but I am not an expert.

I have many friends, classmates and neighbors. I have some best friends also. They are…….. Sorry, I did not want to tell their name right now. Because they stays in the deep place of my heart. I could not forget them in my whole life. I want to put them only there(in the deep place of my heart)..

I have two mail address. They are KhairulHasanbd@Yahoo.com and KhairulHasanmd@Gmail.com

OK and that is enough about me for this time. Thanks.

Where Am I?

You are currently browsing the Uncategorized category at khairulhasanmd.

%d bloggers like this: