Originally Posted by Anderson2
I've searched Google but have not found a clear answer. I need an *example* of what a simple batch file would look like in Android.
For instance I would like to have a "batch file" to do the following:
1 Search root and its subfolders for files whose names include 'flurry'
2. Delete these files.
I currently use a file manager to do the above, but I would like to automate the process so I could just click on a shortcut to do it. I know how to do that in DOS or Windows but how do I do it in Android?
- What tool would I use to write and run such a "batch file"?
- Where would I learn the proper syntax for batch files in Android?
My devices are rooted and run 4.4.2
Thank you for help suitable for an Android newbie.
I thought about writing a batch file for cleaning my intsd of all the junk apps put there. But in the end, I decided to use Tasker instead because it's just easier to maintain. I find myself adding entries all the time, and Root Explorer's text editor is awful.
You can also implement logic that will only delete a folder if children folders are empty.
Easier to make, easier to maintain, no computer or barely usable text editor required.