Solved

diskpart

Posted on 2011-03-17
3
1,049 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

YESTERDAY YESTERDAY.BAT is inspired by a previous article I wrote entitled: TOMORROW.BAT (http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/MS_DOS/A_4196-Advanced-Batch-File-Programming-TOMORROW-BAT.html). The crux of this batch f…
Many people tend to confuse the function of a virus with the one of adware, this misunderstanding of the basic of what each software is and how it operates causes users and organizations to take the wrong security measures that would protect them ag…
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.

734 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