Solved

diskpart

Posted on 2011-03-17
3
1,000 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
Comment Utility
You need to run the batch file in a command prompt window.
0
 
LVL 8

Accepted Solution

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

Open in new window


0
 

Author Closing Comment

by:TonyElam
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

In this article we will discuss all things related to StageFright bug, the most vulnerable bug of android devices.
Windows 10 is here and for most admins this means frustration and challenges getting that first working Windows 10 image. As in my previous sysprep articles, I've put together a simple help guide to get you through this process. The aim is to achiev…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

728 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now