Created
September 24, 2011 01:30
-
-
Save alvin2ye/1238823 to your computer and use it in GitHub Desktop.
hidden run a bat on windows, can found it later
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tasklist /FI "WINDOWTITLE eq ABC" /V /FO | |
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
title ABC | |
ping 127.0.0.1 -n 1000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dim oShell | |
bVisible = 0 | |
' one line of code follows | |
sCmd = """C:\run.bat""" | |
' end of single line of code | |
bWaitOnReturn = True | |
Set oShell = CreateObject ("WScript.Shell") | |
oShell.run sCmd, bVisible, bWaitOnReturn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment