Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Execute command with return code!

I just found a very simple, but awesome function :)

Many people are using the Execute() command, however it doesn't give any return code. Using my little script you can use the execute with the knowledge of the real return.

here it is:

Code
Func Exec($command)
    Local $return
    Execute(Assign("return", $command, 1))
    Return $return
EndFunc


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Assembly] by SIM-1866423Apr 10, 2015 11:30 PM 2 205 Apr 10, 2015 11:30 PM
Last Post: SIM-1866423
by ShadowzKnowledgeSep 12, 2013 01:47 AM 0 153 Sep 12, 2013 01:47 AM
Last Post: ShadowzKnowledge
by Forever a phoneDec 28, 2011 07:53 AM 10 241 Dec 28, 2011 07:53 AM
Last Post: Pseudonym