diskpart /s file.diskpart not working RRS feed

  • Question

  • Don't want to dump thread https://social.technet.microsoft.com/Forums/scriptcenter/en-US/de65304a-87cc-431c-b3fe-64170d26355d/diskpart-s-scripttxt-not-working-invalid-commands but I have the same problem and the file is ansi, even hexdumped it to make sure.

    Redirecting out results in an empty file.

    What else is there to try?

    The file creates a new vhd selects it, and mounts it.

    • Moved by Bill_Stewart Friday, March 15, 2019 7:31 PM Off-topic
    Tuesday, February 12, 2019 9:49 AM

All replies

  • Your question is not a scripting question. Post in the forum for your OS.  DISKPART is a system utility and not a script.


    Tuesday, February 12, 2019 12:10 PM
  • Thanks jrv

    I posted it here because the other post about scripting diskpart is also here. Either way your reply is not an answer.

    Wednesday, February 13, 2019 6:40 AM
  • The other posts are posted with a script.  You are just asking about how to use diskpart.

    Different OS versions have different capabilities.  Also you may need to learn how to use diskpart commands.  Diskpart is not a script.  It is s system utility.


    Wednesday, February 13, 2019 6:47 AM