Last active
September 5, 2020 14:17
-
-
Save simply-coded/a06d1adc4c6c96e1282bcb9be6e55ed7 to your computer and use it in GitHub Desktop.
Revisions
-
simply-coded renamed this gist
Sep 5, 2020 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
simply-coded revised this gist
Dec 29, 2018 . 3 changed files with 2 additions and 34 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ This has been updated and moved here: https://gist.github.com/codeartery/9c0317129b64ce63733ba692a7211dc1 This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,15 +0,0 @@ This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,19 +0,0 @@ -
simply-coded revised this gist
Aug 6, 2017 . 2 changed files with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes.File renamed without changes. -
simply-coded created this gist
Jul 16, 2017 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ Function Console(strCmd) '@description: Run command prompt command and get its output. '@author: Jeremy England ( SimplyCoded ) Dim Wss, Cmd, Return, Output Set Wss = CreateObject("WScript.Shell") Set Cmd = Wss.Exec("cmd.exe") Cmd.StdIn.WriteLine strCmd & " 2>&1" Cmd.StdIn.Close While InStr(Cmd.StdOut.ReadLine, ">" & strCmd) = 0 : Wend Do : Output = Cmd.StdOut.ReadLine If Cmd.StdOut.AtEndOfStream Then Exit Do _ Else Return = Return & Output & vbLf Loop Console = Return End Function This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ stdout = Console("echo Hello there") MsgBox stdout '============================================================ Function Console(strCmd) '@description: Run command prompt command and get its output. '@author: Jeremy England ( SimplyCoded ) Dim Wss, Cmd, Return, Output Set Wss = CreateObject("WScript.Shell") Set Cmd = Wss.Exec("cmd.exe") Cmd.StdIn.WriteLine strCmd & " 2>&1" Cmd.StdIn.Close While InStr(Cmd.StdOut.ReadLine, ">" & strCmd) = 0 : Wend Do : Output = Cmd.StdOut.ReadLine If Cmd.StdOut.AtEndOfStream Then Exit Do _ Else Return = Return & Output & vbLf Loop Console = Return End Function