Hack Forums
[Shell] Is it possible to Execute a .Bat File and make the CMD prompt NOT visible? - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Shell] Is it possible to Execute a .Bat File and make the CMD prompt NOT visible? (/showthread.php?tid=5726733)



Is it possible to Execute a .Bat File and make the CMD prompt NOT visible? - AceVoid - Sep 28, 2017

Is it possible to Execute a .Bat File and make the CMD prompt NOT visible?


* - Mr. Robot - Sep 28, 2017

Yes sure. You can do this many ways. What's this for?


* - AceVoid - Sep 28, 2017

I want execute a "Clear Browser History" for my clients. Having the cmd prompt not show will look and act more professional.

Could you explain how Mr. Robot!

Thank you mate!


* - Phlox - Sep 28, 2017

Please copy and paste below codes to notepad and save it as SilentMode.vbs.


Code
Set WshShell = CreateObject("WScript.Shell")

cmds=WshShell.RUN("BatchScriptHere", 0, True)


Set WshShell = Nothing

Replace BatchScriptHere with your batch script name and folder path to your batch script.

For example i have a batch script named RegBackup.bat which is store in C:\Registry_Backups\Scripts folder path.

Code
Set WshShell = CreateObject("WScript.Shell")

cmds=WshShell.RUN("C:\Registry_Backups\Scripts\RegBackup.bat", 0, True)


Set WshShell = Nothing