Move files from internal storage to SD card

How to automatically move files from your phone’s internal storage to the SD card with the help of Tasker

If you are like me, chances are you will find the task of moving files from your phone’s internal storage to the external SD card (given you have an SD card) to be tedious. So here it is, automating the task via Tasker with minimum effort.

Task description:

Move and Delete Wallpapers
A1: List Files [ Dir:Download Match:*.*jpg Include Hidden Files:Off Use Root:Off Variable:%wpmove ]
A2: For [ Variable:%wpmove Items:%wpmove() ]
A3: Copy File [ From:%wpmove To:/storage/6DC7-1C19/APOD/walle(%TIME%TIMES).jpg Use Root:Off ]
A4: End For
A5: List Files [ Dir:Download Match:*.*jpg Include Hidden Files:Off Use Root:Off Variable:%wpdelete ]
A6: For [ Variable:%wpdelete Items:%wpdelete() ]
A7: Delete File [ File:%wpdelete Shred Level:0 Use Root:Off ]
A8: End For
A9: Flash [ Text:Wallpaper moved successfully Long:Off ]

Tasker move and delete files

Explanation:

A1: Listing all the files in the directory “Download” and assigning a variable to it

A2: Creating the task

A3: Copying file to the SD card in a directory called “Walle”

A5: Re-listing the files in the “Download” directory and assigning a variable

A6: Deleting the downloaded file

A9: Flashing a short on-screen notification once the task completes

Credit: Got the idea from one of Tasker’s Zens so, credit to the original creator.

How to trigger this?

You can trigger the task as you wish. In my setup, I have made it time bound. The task runs every night at 9, scans the download folder for any wallpaper and if a wallpaper is found, it performs its magic.

Another way to run this task would be via a widget on the home screen. So, you can call this task as and when it is required.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s