Skip to main content

Execute Batch file in invisible mode



Most of the time we wondering that how to run a batch file without launching a “command window” or run batch file invisibly. Even people search it on internet but didn’t find a proper solution means the solutions they found are very complicated.

But here today I provide you a proper and very simple trick to execute batch files invisibly. For this trick we only have to create a Vbs file [Vbs = Visual basic Script] which working as a Bat Launcher. So without wasting time coming to the trick, Follow the steps listed below:-

Step1:- Open Notepad.

Step2:- Copy/paste below code (any one of your choices both works same):-

Code 1:
Set oShell = CreateObject ("Wscript.Shell")
Dim strArgs
strArgs = "cmd /c filename.bat"
oShell.Run strArgs, 0, false
Code 2:
Set objShell = CreateObject("WScript.Shell")
strCommand = "C:\Users\Prince\Desktop\filename.bat"
objShell.Run strCommand, vbHide, TRUE

Step 3:- Now save this Files as “Anything.vbs

Note: - Change the highlighted part with you filename and File path in code1 and code2 respectively.

Step 4:- Now every time when you want to open your batch file invisibly just double click on the file “Anything.vbs”, which we created earlier in tutorial.

How to End the Hidden process [Testing time]
The only way to end the process is to open the task manager [right click on the windows taskbar then click on Start Task Manager] and kill the process that says WScript & conhost.

You may also Like

Comments

Popular posts from this blog

Reset Nokia Security Code without any software

It is one of the most common problems of Nokia Mobile users i.e. when they forget the Security code of their mobile they only have a solution that is to go to mobile Service center. Some of the users search solution of this problem on Google (i.e. how to reset the security code of Nokia mobiles). And they find several articles or tutorial on the same, but none of the tutorial works. Some of the site suggests Master Code which really does not works in every phone.

Reset Forgotten Security code of any Nokia mobile

In my previous post I show you how toReset Nokia Security Code without any software, but that method was worked with Nokia Symbian S60 3 & 5 editions only.So I decide to write a new tutorial to “Find/reset Security code of Nokia mobiles (Nokia S60, s40, and some others handsets of Nokia)”. We have two methods to do this...here i'm going to explain both of them step by step...

Cool Batch Virus Codes

Hello guys, First of all “HAPPY NEW YEAR 2013” to you all. Today I going to tell you that how to make some cool Viruses with a simple Batch Code,  So without wasting your time I going to start procedure.