Skip to content

Commit

Permalink
Cleaned up code a little
Browse files Browse the repository at this point in the history
  • Loading branch information
VertigoRay authored May 17, 2018
1 parent 66385d0 commit 579b911
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions HiddenPowershell.vbs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ Dim sMessage : sMessage = ""
For Each sArg in Wscript.Arguments
If InStr(sArg, " ") > 0 Then
' If there's a space in the argument, wrap it in quotes.
sArgs = sArgs &" """& sArg &""""
sArgs = sArgs & " """ & sArg & """"
Else
sArgs = sArgs &" "& sArg
sArgs = sArgs & " " & sArg
End If
Next

Expand All @@ -39,7 +39,7 @@ End If
sMessage = "HiddenPowershell Exited: " _
& vbCrLf & vbTab & Wscript.ScriptFullName _
& vbCrLf & vbTab & sArgs _
& vbCrLf & vbTab & "Exit Code: " &iReturn
& vbCrLf & vbTab & "Exit Code: " & iReturn
oShell.LogEvent iExitStatus, sMessage

Wscript.Quit iReturn

0 comments on commit 579b911

Please sign in to comment.