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.
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)
Code:
var WindowStyle_Hidden = 0 var objShell = WScript.CreateObject("WScript.Shell") var result = objShell.Run("cmd.exe /c abc.bat", WindowStyle_Hidden)
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)