Jump to content

Recommended Posts

Guest isambard
Posted

Just wondering if anyone knows how to make a script that can be run by CW recovery that simply deletes a specified file on the data partition?

Guest t0mm13b
Posted
Just wondering if anyone knows how to make a script that can be run by CW recovery that simply deletes a specified file on the data partition?

try this:

mount("yaffs2", "MTD", "userdata", "/data");

delete("/data/tmp/foobar");

unmount("/data");

The above script sample deletes a file called 'foobar' that resides in the /data/tmp directory.

HTH.,

Guest isambard
Posted
try this:

mount("yaffs2", "MTD", "userdata", "/data");

delete("/data/tmp/foobar");

unmount("/data");

The above script sample deletes a file called 'foobar' that resides in the /data/tmp directory.

HTH.,

Thanks. I will test it out.

Guest isambard
Posted
try this:

mount("yaffs2", "MTD", "userdata", "/data");

delete("/data/tmp/foobar");

unmount("/data");

The above script sample deletes a file called 'foobar' that resides in the /data/tmp directory.

HTH.,

you should miss out the yaffs2 parameter, but other than that, it works great! :)

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.