Bom dia Pessoal,
Consegui uma solução alternativa, é "gambiarra", mas dá certo.. E este exemplo é para o VB6
Private Sub Form_Load()
Dim ReturnValue, I
ReturnValue = Shell("cmd.exe", vbNormalFocus)
'AppActivate ReturnValue
WAIT
SendKeys "~format D: /fs:NTFS /q/u", True
WAIT
WAIT
WAIT
WAIT
WAIT
WAIT
SendKeys "~s", True
WAIT
WAIT
WAIT
SendKeys "~s", True
WAIT
SendKeys "{ENTER}", True
WAIT
SendKeys "{ENTER}", True
WAIT
SendKeys "~Exit", True
SendKeys "{ENTER}", True
Unload Me
End Sub
Private Sub WAIT()
For I = 1 To 1000
DoEvents
Next I
End Sub