Running batch files in the background

Solved/Closed
armandsaga Posted messages 23 Status Membre -  
 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 réponses

Noha819 Posted messages 109 Status Membre 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
armandsaga Posted messages 23 Status Membre 2
 
Hello,
thank you for your idea, it works.
0
SHELDORS
 
thank you
0
kouRa
 
thank you
0
Zemimi Posted messages 2772 Status Membre 384
 
Yes, having ultimate knowledge, knowing everything, is impossible ^^
3
armandsaga Posted messages 23 Status Membre 2
 
nothing is impossible
2
Noha819 Posted messages 109 Status Membre 14
 
Hehe, you shouldn't speak too soon, Zemimi! ;)
1
Zemimi Posted messages 2772 Status Membre 384
 
I will go to bed less of an idiot tonight, I didn't know that was possible.
1
Zemimi Posted messages 2772 Status Membre 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