Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

Basic Batch Question


ghost's Avatar
0 0

I have a super simple question about basic batch programming. All I need is a batch program that runs, does absolutely nothing without showing the dos window, then exits.

My Code:

@echo off
exit

The window still pops up for a split second…Any help?


ghost's Avatar
0 0

Are you trying to figure out how to make a batch program run silently?


ghost's Avatar
0 0

haha yeah it does seem like a really stupid question, but I'll have you know I do know what a batch file is :P

I guess you could call it making it run silently but i'm not trying to make a 1337 h4x0r virus if that's what you're thinking. My problem is Windows is being dumb and on startup is running something (MS Office I think) that trys to open an rbf file but i get a "Windows cant open" message every time I turn my computer on and I dont know where the rbf file is or what task is requesting it so im trying to make a batch handler that will simply open and close so windows shuts up. Hope that made sense…


ghost's Avatar
0 0

Oh so you don't need to run it silently…

Find out what process the error message is (cmd > tasklist) and then just put a taskkill command in your batch. I think that should work…