locked
dos from vb RRS feed

  • Question

  •  

    how to execute a dos command from vb
    Thursday, September 13, 2007 4:51 PM

Answers

  • shell command is used in vb for that purpose

     

     

     

     

    cheers

    nana

     

    Thursday, September 13, 2007 4:56 PM

All replies

  • shell command is used in vb for that purpose

     

     

     

     

    cheers

    nana

     

    Thursday, September 13, 2007 4:56 PM
  • Just in case you are looking for the syntax -

     

    Code Snippet

    Dim dblRetVal As Double, sCmdLine as String
    sCmdLine = "C:\test.bat"
    dblRetVal = Shell(sCmdLine, vbNormalFocus)

     

     

     

    Btw, don't you think that you can find such information easily by searching on the internet? You will also get the answer faster that way. Please do some due deligience before posting your questions.

    Friday, September 14, 2007 4:33 AM