1.

Solve : Solved - "Batch file to give commands to different DOS programs"?

Answer»

How to create a batch file that will GIVE commands to different DOS programs..
Like a program to move the 'boot' flag to different primary partitions:

Code: [Select]DISKPART
SELECT DISK 0
SELECT PARTITION 5
ACTIVE

But the above shown code OPENS the DISKPART but does nothing more than that.
Thanks.
-AshutoshQuote

But the above shown code opens the DISKPART but does nothing more than that.

That's because Diskpart is WAITING for commands from the STDIN device which is the keyboard. You should try creating a script file and USING the /S SWITCH with Diskpart.

See here..

Thanks.



Discussion

No Comment Found