Run diskpart batch file




















I looked online a for They have changed the access levels I like your project here, and I've used it, and at one time it worked, at least with an older version Hi Bruce, Good to know you are playing with Windows 10 IoT, and thanks for sharing these great finding Home Blogs Articles Download About. Go to Recent blog entries. Loading, please wait.

Archived Forums. The Official Scripting Guys Forum! If your answer is "yes," you know what to do. Dive in and help somebody! If your answer is "no," welcome to our fun little world! We'd recommend that you first head over to the Script Center, get your feet wet, and then come back to either ask or answer questions.

We can't be everywhere at once we know—shocking! The Microsoft Scripting Guys 2 1. Sign in to vote. Many Thanks.

Monday, June 20, PM. You need to ask the user for the disk number, then generate the script file, e. Marked as answer by drfosters Monday, June 20, PM. Thanks for your time. Thanks Again! Hi, Pegasus posted a shell script batch file.

HTH, Bill. I didn't think it could be done. Good thinking, batman! Is it possible to run the "List Disk" command first? It is kind of pointless to run it afterward? As I said, I'm very newbie :- Thanks for your help!

As I said, I'm very newbie :- To move from "newbie" to "experienced" status you need to make an effort a To understand the scripts you get and b To use them as a stepping stone to move further. Good luck! To avoid having to right click and click Run as Administrator, create a shortcut to the batch file and set it to Run as Administrator , then use the shortcuts: Right click the shortcut, click Properties On the Shortcut tab, click the Advanced button Check the box for Run as Administrator.

If you give the drive a label, you can read that in Diskpart to determine the disk number, then use that to select the drive. To assign a label, right click the disk in Windows Explorer, click Properties.

On the General tab type a label into the box. Note that diskpart will only display the first 11 characters, so make sure they are unique. If that might be a problem, you can always check the drive type to make sure you are only selecting USB drives, or better yet, the Drive ID.

You could have 2 USB drives with the same label, but the odds of having two with the same Drive ID is about 1 in 4,,, Please wait, gathering info on the installed drives Echo. Select Partition 1 Echo. Please Right click the file, then click Run as Administrator Echo.

Unktone said:. Also, my professor said he would raise my homework grade from last week from a 95 to a if I did it thank you for your answers, man. VERY informative! Yeah, haha, I guess it was special circumstances I didn't have any dvd-r's around so I had to image win7 on my USB and install it that way it had been a year since my first fresh installation of the OS, and I misplaced my disks , so I set it to that.

I am kind of beyond it, but there was no test-out option, so just kind of jesting i asked if I could get that homework grade raised by 5 points it was like 20 questions about windows easy transer, AIK, PE 3. Don't worry, I am going to show him what I made first, then show him the answer you gave me because he knows I am a low-level scripter Thanks again for all of your help, I would call this solved!

You're Welcome! As Seen On. Welcome to Tech Support Guy! Latest posts. Windows Please help 1 Viewer Latest: peterrn 24 minutes ago. Laptop not charging Latest: plodr 39 minutes ago.

Having problems connecting with YouTube 1 Viewer Latest: beigletony 48 minutes ago. Windows 7. Installing a Simple Home camera on a android phone Latest: muckmail 50 minutes ago.

Android Mobile Devices.



0コメント

  • 1000 / 1000