Jump to content

Recommended Posts

Posted
#include <Constants.au3>
ListLetter()
Func ListLetter()
    ;$DSK = Run("cmd", '', '', $STDIN_CHILD + $STDOUT_CHILD)
    $DSK = Run(@ComSpec & " /c diskpart.exe start", '', '', $STDIN_CHILD + $STDOUT_CHILD)
    ConsoleWrite('$DSK - '& $DSK&' - Error - '& @error &' - '&@MSEC&@CRLF)
    Sleep(2000)
    $Read = StdoutRead($DSK, True, False)
    ConsoleWrite(' - '& @error &' - '&@MSEC&@CRLF)
    ConsoleWrite('StdoutRead ' &$Read&' - '&@MSEC&@CRLF)
EndFunc   ;==>ListLetter

So, this works with normal console "cmd" why does it error with diskpart? how can i make it read from diskpart?

  Reveal hidden contents

IUIAutomation - Topic with framework and examples

Au3Record.exe

Posted

it worked, i didn't think of trying that. Thought it was something else related to the way it was reading or something. Thanks.

  Reveal hidden contents

IUIAutomation - Topic with framework and examples

Au3Record.exe

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...