Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 02-04-2009, 03:13 AM   #1 (permalink)
 
Newb Techie

Join Date: Jan 2009

Posts: 4

Decode is on a distinguished road

Default Batch file problem

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.
Decode is offline  
Old 02-04-2009, 08:03 AM   #2 (permalink)
office politics's Avatar
 
It's all just 1s and 0s

Join Date: Jan 2004

Location: in the lab

Posts: 4,425

office politics will become famous soon enough

Default Re: Batch file problem

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.
office politics is offline  
Old 02-06-2009, 10:42 AM   #3 (permalink)
 
Newb Techie

Join Date: Jan 2009

Posts: 4

Decode is on a distinguished road

Default Re: Batch file problem

Thanks, it didn't work at first but then i did iRecovey.exe -s < file.txt and it did.
Decode is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Batch File Help david432111 Programming Discussions 2 10-24-2008 10:12 AM
Installing Ubuntu. 95BlackGA Linux, BSD, other *nixes & Open Source Software 1 10-16-2008 09:44 PM
Explorer.exe CRASHES INSTANTLY =( [F] wootwoot HijackThis Logs (finished) 28 07-15-2008 02:47 PM
Batch scripting: Startup applications and close batch file LincolnX Windows Operating Systems and Software 7 01-17-2008 08:50 PM