Batch file problem

Status
Not open for further replies.

Decode

Beta member
Messages
4
I'm trying to make a .bat file to automate booting up a jail broken iPod touch 2G. It uses a program called iRecovery, but in the middle of the script it just stops.

Code:
iRecovery.exe -s
arm7_stop
mw 0x9000000 0xe59f3014
mw 0x9000004 0xe3a02a02
mw 0x9000008 0xe1c320b0
mw 0x900000c 0xe3e02000
mw 0x9000010 0xe2833c9d
mw 0x9000014 0xe58326c0
mw 0x9000018 0xeafffffe
mw 0x900001c 0x2200f300
arm7_go
arm7_stop
/exit

It stops after it does iRecovery.exe -s. The rest of the code is meant to be executed inside of iRecovery.exe -s. Is there any way to do that? Sorry I've not explained it very well.
 
you could try to use input redirection to execute the commands.

you would need to save all commands after irecovery to another file...say runcmd.txt

then modify the current batch to use input redirection

irecovery.exe -s << runcmd.txt


if you use this exact command, runcmd would have to be in the same directory as the batch file.
 
Thanks, it didn't work at first but then i did iRecovey.exe -s < file.txt and it did. :)
 
Status
Not open for further replies.
Back
Top Bottom