Diskpart-How to identify the Internal and external device and clean based on it RRS feed

  • Question

  • Hello All,

    I required the script-vbs, C#, batch, which help me to identify and clean the internal HDD only. If the Internal HDD is corrupted or not installed as "disk 0" and USB is showing as "Disk 0" then script will exit without do anything.

    Hope you understand my concern.




    Thanks, Dashrath Chate

    • Moved by Bill_Stewart Wednesday, December 12, 2018 9:32 PM Unanswerable drive-by question
    Thursday, September 6, 2018 3:28 PM

All replies

  • We don't just write scripts for you. Do the research and testing yourself and check the Gallery for any existing scripts that someone has put the work into making.

    Let us know what you have tried so far and what is failing.

    Thursday, September 6, 2018 4:12 PM
  • You also need to learn about disks and diskpart.  Your question is quite ambiguous.

    This is not a diskpart forum.  Diskpart is s system utility.  Post in Windows General forum for help with system utilities.


    Thursday, September 6, 2018 5:12 PM