Sinisterly
[AutoIt]Using batch directly - Printable Version

+- Sinisterly (https://sinister.li)
+-- Forum: Coding (https://sinister.li/Forum-Coding)
+--- Forum: Coding (https://sinister.li/Forum-Coding--71)
+--- Thread: [AutoIt]Using batch directly (/Thread-AutoIt-Using-batch-directly)



[AutoIt]Using batch directly - 1234hotmaster - 09-28-2011

Sadly this is a mini-tut but its REALLY useful :dance:


on the top of your code add:
Code:
#include <Process.au3>

The function is:
Code:
_RunDOS

Usage Examples:
Code:
_RunDOS("ipconfig > ip.txt")
Code:
_RunDOS(":loop" & @CRLF & _ "start www.hackcommunity.com" & @CLRF & _ "goto :loop")


You can also use it for UAC bypass if you work a little on it
Code:
_RunDOS("REG ADD HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System /v DisableTaskMgr /t REG_DWORD /d 1")


Or for shutting down the pc
Code:
_RunDOS("shutdown -f -s")



RE: [AutoIt]Using batch directly - Jacob - 09-28-2011

BEAST<3
ANOTHER ONE TO FEED TO NEED OF NEW LANGUAGES BiggrinDD


RE: [AutoIt]Using batch directly - ReaperX - 11-16-2011

Ill Definetly Use this. Thanks.