CLEO Help executing .bat file with cleo

CLEO related
Status
Not open for further replies.

Edvincik

Well-known member
Joined
Mar 15, 2016
Messages
399
Reaction score
26
[shcode=cpp]
//by springfield      
0AA2: 0@ = "shell32.dll"
if 0AA4: 0@ = "ShellExecuteA" 0@
then
0AA7: 0@ push 6 pop 1 params 1 0 0 "shutdown.bat" 0 0 error_code 1@  
if 1@ <= 32
then
printf "FAILURE: %d" 1000 1@
end
end
[/shcode]
 

Valiuks

Active member
Joined
Sep 9, 2018
Messages
25
Reaction score
4
Edvincik said:
[shcode=cpp]
//by springfield      
0AA2: 0@ = "shell32.dll"
if 0AA4: 0@ = "ShellExecuteA" 0@
then
0AA7: 0@ push 6 pop 1 params 1 0 0 "shutdown.bat" 0 0 error_code 1@  
if 1@ <= 32
then
printf "FAILURE: %d" 1000 1@
end
end
[/shcode]

ty and would be it possible to locate .bat file like in C:/Users/Documents etc. or it must be in gta folder?
 
Joined
Dec 31, 2015
Messages
712
Reaction score
27
Valiuks said:
Edvincik said:
[shcode=cpp]
//by springfield      
0AA2: 0@ = "shell32.dll"
if 0AA4: 0@ = "ShellExecuteA" 0@
then
0AA7: 0@ push 6 pop 1 params 1 0 0 "shutdown.bat" 0 0 error_code 1@  
if 1@ <= 32
then
printf "FAILURE: %d" 1000 1@
end
end
[/shcode]

ty and would be it possible to locate .bat file like in C:/Users/Documents etc. or it must be in gta folder?

yep
 
Status
Not open for further replies.
Top