How to Automate Diskpart using a Batch File

preview_player
Показать описание
How to Automate Diskpart using a Batch File

@echo off

--------------------------------------------------------

SELECT DISK 2
CLEAN
CREATE PARTITION PRIMARY
SELECT PARTITION 1
ACTIVE
FORMAT QUICK
ASSIGN LETTER=E
EXIT

-------------------------------------------------------
Launch Batch Scripts as Administrator (with GUI UAC prompt)

Join our forum
Рекомендации по теме
Комментарии
Автор

Nice Video Mr. B. The only issues I am having its my batch file is not running. My CMD prompt comes up and nothing happens. I am not sure since I am in windows 10 if I should be saving in UNICODE, Et...This is where dummies like me need help bc I am not much into programming lol I would have loved seeing you do it from beginning to end lol..Never thought I would be asking being a computer tech:) Good video though..Thanks

mlsmls
Автор

Mike-m5
Hello Brian,
I'm the one who asked you to make this video clip. Thanks very much and I've shown my appreciation with a small donation via Paypal. Don't spend it all at once!!! Thanks Again!

mikeminshell
Автор

Can I have my text file list multiple disks and clean them using this method? I tried to put a space in between and do the same process on 5 disks and exit but it would not work for me.

guysensei
Автор

How can I get information from the user with this method "/p"...

I need to show the list disk command to the user in the cmd console and ask on which disk to continue the process.

efeakcay
Автор

i noticed you use CAM program, have you had any problems with it lately like 100's of us on thier forums been having? newest version 3.5.8 wont let us login to the program and just sits in the task manager.Im asking you cause the developers dotn seem to have a clue as to what they're doing, thanx :)

lisaghost
Автор

Brian can I enable System Reservad to be seeable with diskpart?

filips_world
Автор

Hello sir, Can you tech us how to backup and recover EFI window by using Acronis? Thank

kypepoly
Автор

Why couldn't you have this in a single batch, and use auto search to find the drive rather than having to "make sure you know what drive letter this is" so you could deploy this to machines that have a different number of drives?

MegacoolZX
Автор

I'm making a custom windows install gui, thx

mecyanned
Автор

I need My laptop windows 10 core i3 says recovery please blah blah blah like in your how to use startup repair video. Btw this happened because i got mad and smashed my fist on the computer near the intel core i3 logo. i called bestbuy, which translated me to a geeksquad agent, and he said that my hard drive crashed. I asked is there anyway to fix this? He said nope, you can only take it to the store. My computer makes weird high pitched bleep sounds everytime i try to exit to windows 10. It also is saying that it is failing because a critical process died, i can get into the desktop and it works, for a few minutes, than it will crash once i open like 2 softwares. Please help me, im crying right now!

sylvain
Автор

Brother is there any way to select disk usb wothout menction disk number

salexkorsan
Автор

why u given commonds in a text file ..rather than typing directly in bat file ?

tarnaka
Автор

​ @Britec09 how to make batch run windows update

unknown-yotx
Автор

hey, what is when i want to choose the disk manually ? i tried it with
set /p disk=disk:
Set /a Result=%disk%
select disk %disk%
but its not working for some reason :/

RealPurplePanic
Автор

Hello britec I am facing CPU fan error on my pc can you please help me how to solve this ?
Please

opaf
Автор

I find it incredibly annoying when people gesture with their mouse

sparingatom