Jump to content

USB boot disk win7


condor

Recommended Posts

Once it was needed to install Windows 7 from USB disk, after many search on the net and many failed tutorial and software this one work.

http://www.sevenforums.com/tutorials/2432-usb-windows-7-installation-key-drive-create.html?ltr=U

How can make the batch (.cmd, .bat) to run in order the same instruction?

I try this:


ECHO OFF
CLS
:MENU
ECHO.
ECHO ...............................................
ECHO PRESS in order from 1 to 10 or 2 for EXIT
ECHO ...............................................
ECHO.
ECHO 1 - Starting DISKPART
ECHO 2 - EXIT
ECHO.
SET /P M=Type 1, 2, then press ENTER:
IF %M%==1 GOTO DISKPART
:DISKPART
DISKPART
list disk
GOTO MENU

After I RUN this batch she open DISKPART but not show the information be typing list disk.

Any help? Tks

Posted in wrong section, someone to move to

Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)

Edited by condor
Link to comment
Share on other sites


Once it was needed to install Windows 7 from USB disk, after many search on the net and many failed tutorial and software this one work.

http://www.sevenforums.com/tutorials/2432-usb-windows-7-installation-key-drive-create.html?ltr=U

How can make the batch (.cmd, .bat) to run in order the same instruction?

I try this:


ECHO OFF
CLS
:MENU
ECHO.
ECHO ...............................................
ECHO PRESS in order from 1 to 10 or 2 for EXIT
ECHO ...............................................
ECHO.
ECHO 1 - Starting DISKPART
ECHO 2 - EXIT
ECHO.
SET /P M=Type 1, 2, then press ENTER:
IF %M%==1 GOTO DISKPART
:DISKPART
DISKPART
list disk
GOTO MENU

After I RUN this batch she open DISKPART but not show the information be typing list disk.

Any help? Tks

Posted in wrong section, someone to move to

Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)

use diskpart /s script.txt

Link to comment
Share on other sites

use diskpart /s script.txt

But, if the usb disk is conected in another computer or in another USB port this script can assign the drive for both of computers of both of USB port?

I.m not an expert on diskpart and I'm not sure what youur asking.

But if I understand correctly it shouldn't matter what usb port

the USB disk is plugged into. Yes the script will apply to the disks

of the computer its plugged into.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...