Invisibly Execute BAT File in the background *w/Pics* 04-16-2014, 07:32 PM
#1
I don't know where to put this tutorial so I will be posting it under Hacking Tutorials.
If its not in the right place pls pm me or just move it.
1.Requirements
Notepad or any other text editor
------------------------------------------------------------------------
2.Lets say I ping google.com using BAT script and then save as ping.bat
When we double click it.Something like this in cmd should open.
![[Image: Screen_Shot_2014_04_17_at_3_18_49_AM.jpg]](http://s11.postimg.org/lhhu78e5r/Screen_Shot_2014_04_17_at_3_18_49_AM.jpg)
Then the window with automatically close after its been executed.
3. After that we will utilize Windows Script Host RUN method to invisibly execute BAT file in the background.
This is the script
![[Image: Screen_Shot_2014_04_17_at_3_30_25_AM.jpg]](http://s28.postimg.org/9c0wfwu7t/Screen_Shot_2014_04_17_at_3_30_25_AM.jpg)
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run chr(34) & "C:\ping.bat" & Chr(34), 0
Set WshShell = Nothing
Save this in notepad with .vbs extension.I will call it hidden.vbs
4.I've modified the BAT script a little bit, because we need to check whether the script was successfully executed or not.
ipconfig > result.txt
all IP configuration result will be saved into result.txt file.
5.When we execute the hidden.vbs, no window popped out and if our script was successfully executed in the background, in our folder location should have a new file result.txt contained with information about windows ip configuration.
Feel free to share! :epic:
To all who want to look at the pics.Click it and it will open up a new window bigger.
If its not in the right place pls pm me or just move it.
1.Requirements
Notepad or any other text editor
------------------------------------------------------------------------
2.Lets say I ping google.com using BAT script and then save as ping.bat
When we double click it.Something like this in cmd should open.
![[Image: Screen_Shot_2014_04_17_at_3_18_49_AM.jpg]](http://s11.postimg.org/lhhu78e5r/Screen_Shot_2014_04_17_at_3_18_49_AM.jpg)
Then the window with automatically close after its been executed.
3. After that we will utilize Windows Script Host RUN method to invisibly execute BAT file in the background.
This is the script
![[Image: Screen_Shot_2014_04_17_at_3_30_25_AM.jpg]](http://s28.postimg.org/9c0wfwu7t/Screen_Shot_2014_04_17_at_3_30_25_AM.jpg)
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run chr(34) & "C:\ping.bat" & Chr(34), 0
Set WshShell = Nothing
Save this in notepad with .vbs extension.I will call it hidden.vbs
4.I've modified the BAT script a little bit, because we need to check whether the script was successfully executed or not.
ipconfig > result.txt
all IP configuration result will be saved into result.txt file.
5.When we execute the hidden.vbs, no window popped out and if our script was successfully executed in the background, in our folder location should have a new file result.txt contained with information about windows ip configuration.
Feel free to share! :epic:
To all who want to look at the pics.Click it and it will open up a new window bigger.




![[+]](https://sinister.li/images/modern/collapse_collapsed.png)