Running batch files in the background

Solved/Closed
armandsaga Posted messages 23 Status Member -  
 kouRa -
Hello,
I would like my batch files to run in the background, so they are no longer visible,

what command should I use or how can I do this, thank you in advance
Configuration: Windows 2000 Firefox 2.0.0.11

6 answers

  1. Noha819 Posted messages 109 Status Member 14
     
    Hello! You can use a .vbs file that will completely hide your batch files! (Visible only in the task manager).
    Create a text file, change the extension to .vbs, and copy this code inside:

    Set oWShell = CreateObject("Wscript.Shell")
    oWShell.Run """C:/yourbatch.bat""", 0, False
    Set oWShell = Nothing

    Just replace C:/yourbatch.bat with the path to your batch file, of course!
    Good luck!
    45
    1. armandsaga Posted messages 23 Status Member 2
       
      Hello,
      thank you for your idea, it works.
      0
    2. SHELDORS
       
      thank you
      0
    3. kouRa
       
      thank you
      0
  2. Zemimi Posted messages 2772 Status Member 384
     
    Yes, having ultimate knowledge, knowing everything, is impossible ^^
    3
  3. armandsaga Posted messages 23 Status Member 2
     
    nothing is impossible
    2
  4. Noha819 Posted messages 109 Status Member 14
     
    Hehe, you shouldn't speak too soon, Zemimi! ;)
    1
  5. Zemimi Posted messages 2772 Status Member 384
     
    I will go to bed less of an idiot tonight, I didn't know that was possible.
    1
  6. Zemimi Posted messages 2772 Status Member 384
     
    A batch file executes only in command line, no background option available, but you can hide the commands in the window with @echo off.
    0