Visual basic and Dos

Discussion in 'Programmer's Corner' started by zeropirate, Dec 8, 2013.

  1. zeropirate

    Thread Starter New Member

    Nov 27, 2013
    2
    0
    hy all
    can anyone please tell me how to run a cmd code in vb by hidding the dos console ??
    Actually i want to delete a file using cmd whenever a command button is pressed in vb.. The filename should be specified in the text box..
    but the problem is that the cmd console pops up always whenever i tries to delete a file.. is there any way to run this in hidden mode ??
    thanks in advance :)
     
  2. sirch2

    Well-Known Member

    Jan 21, 2013
    1,008
    351
  3. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,394
    1,606
    Since you didn't provide any details such as the OS, version of VB, and the command you are using to run the DOC box it's pretty hard to suggest a solution beyond asking Google how to "shell hidden dos box" and picking the solution that fits your usage.
     
Loading...