• Index » 
  • Community » 
  • Tech » 
  • Executing a batch file without it appearing (Tutorial)
mazeingmazerules
Member
+8|6740|Canada
This tutorial, if used correctly, will show you how to run a batch file without you seeing it.  It'll function normally and shouldn't have any run problems; only difference is that you can't see it.  Open up notepad or any text editor, and place these statements in.  Don't worry about it being harmful because it obviously isn't and this is the main thing we need to execute something hidden successfully.

Code:

var WindowStyle_Hidden = 0
var objShell = WScript.CreateObject("WScript.Shell")
var result = objShell.Run("cmd.exe /c abc.bat", WindowStyle_Hidden)
Replace the abc to the location of your batch file.  Remember, you must route it exactly or it won't run it properly since it won't know where the file itself is.  Make sure you add full path and not just the name of the file.  Save that file we've just created as: Something.js

Please remember; however, that you can name it basically anything you want as long as you keep it's file extension (js).  Now, click that new file we've created, and once you've done that you may not notice anything.  However, what ever file you've told it to run hidden, will be executed perfectly normal and will do what ever it's suppose to do.

Thread Author/Writer: 100% Mazeingmazerules (Rog3r)
King_County_Downy
shitfaced
+2,791|6859|Seattle

This goes into your startup folder then or pushed out with SMS? How does this differ from running a batch script with @ECHO OFF?
Sober enough to know what I'm doing, drunk enough to really enjoy doing it
FFLink
There is.
+1,380|6953|Devon, England
Do we really need to know all this?
.Sup
be nice
+2,646|6715|The Twilight Zone

FFLink wrote:

Do we really need to know all this?
Ah Linky just don't post in the topic as you're bumping it. Ignore it if you're not interested, not so hard to do is it now
https://www.shrani.si/f/3H/7h/45GTw71U/untitled-1.png
  • Index » 
  • Community » 
  • Tech » 
  • Executing a batch file without it appearing (Tutorial)

Board footer

Privacy Policy - © 2025 Jeff Minard