Jump to content

Recommended Posts

Posted (edited)

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

Posted

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

Posted

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?

Posted

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.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

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