Solved

diskpart

Posted on 2011-03-17
3
1,027 Views
Last Modified: 2012-05-11
Hello
I am trying to run a .bat that will open the diskpart utility and list the disks on the system.
My .bat contains the following


start diskpart /s f:\list.txt

list.txt contains the following

list disk



my problem is that the diskpart utility opens reads the command from the .txt file runs the command but then the diskpart wimdow quickly flashes the disks on the system and immediatly closes.  I would like it to stay opn.  Whan am I missing here?
0
Comment
Question by:TonyElam
3 Comments
 
LVL 6

Assisted Solution

by:dave_it
dave_it earned 25 total points
ID: 35159577
You need to run the batch file in a command prompt window.
0
 
LVL 8

Accepted Solution

by:
subhashchy earned 475 total points
ID: 35159607
use below
 
start cmd /k diskpart /s f:\list.txt

Open in new window


0
 

Author Closing Comment

by:TonyElam
ID: 35159676
thank you both very very much Subhashchy your solution was the perfect most complete fit.
Thank you also dave it you put me on the right path
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I don't know if many of you have made the great mistake of using the Cisco Thin Client model with the management software VXC. If you have then you are probably more then familiar with the incredibly clunky interface, the numerous work arounds, and …
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question