Re: Scripting the use of Diskpart?
- From: "Pegasus \(MVP\)" <I.can@xxxxxxx>
- Date: Wed, 18 Oct 2006 11:39:31 +1000
Thanks for the feedback.
"Corey_in_Canada" <no@xxxxxxxxx> wrote in message
news:uNZ9b2j8GHA.2316@xxxxxxxxxxxxxxxxxxxxxxx
Hey Pegasus,I
I got it working. I was referencing my file wrong.
Thanks a lot for your help. I would assign points if I could!!
"Corey_in_Canada" <no@xxxxxxxxx> wrote in message
news:e8fNMtj8GHA.208@xxxxxxxxxxxxxxxxxxxxxxx
Hi Pegasus,
Thanks for taking the time to reply with an informative answer. Because
combineam by no means a scripting guru, in your example, what does script.scr
refer to?
For instance with my very simple and basic batch file, how would I
diskthat with the below example to make this work?
I tried looking up some examples but it didnt really touch on the exact
variables...maybe Im just missing the obvious though, and if so I
apologize.
Thanks kindly.
"Pegasus (MVP)" <I.can@xxxxxxx> wrote in message
news:eSBA%23ej8GHA.3644@xxxxxxxxxxxxxxxxxxxxxxx
"Corey_in_Canada" <no@xxxxxxxxx> wrote in message
news:O0Ah%23xh8GHA.2092@xxxxxxxxxxxxxxxxxxxxxxx
Is it possible to create a batch file that will reconnect a dynamic
arethrough diskpart? To reconnect a dynamic disk the following commands
disksnecessary
diskpart
select disk X
online
That command would and does bring an offline dynamic disk back online.
However when I run that through a batch file it hangs at the following
prompt:
Diskpart>
Its almost as if external interactive commands are prohibited from
running
for saftey precautions.
Is there a work around to this or can anyone give some advice.
Just FYI, I am trying to do this for an iSCSI SAN that has dynamic
doesconfigured on a connected server, since Microsoft's iSCSI initator
annot
support dynamic disks I am looking for a work around from purchasing
iSCSI HBA just for dyanmic disk support.
Thanks
The standard method is to pipe the subcommands into
diskpart via a script file:
@echo off
echo > c:\script.scr select disk X
echo >> c:\script.scr online
diskpart < c:\script.scr
.
- References:
- Scripting the use of Diskpart?
- From: Corey_in_Canada
- Re: Scripting the use of Diskpart?
- From: Pegasus \(MVP\)
- Re: Scripting the use of Diskpart?
- From: Corey_in_Canada
- Re: Scripting the use of Diskpart?
- From: Corey_in_Canada
- Scripting the use of Diskpart?
- Prev by Date: Re: Is it possable to move a 2003 install to a new server ?
- Next by Date: Re: Is it possable to move a 2003 install to a new server ?
- Previous by thread: Re: Scripting the use of Diskpart?
- Next by thread: Re: Scripting the use of Diskpart?
- Index(es):
Relevant Pages
|