It is currently April 30th, 2024, 1:29 pm

automatic sequential rename and delete Function?

Get help with creating, editing & fixing problems with skins
daily_goods
Posts: 5
Joined: September 17th, 2010, 10:51 am

automatic sequential rename and delete Function?

Post by daily_goods »

got a couple of things I need in order for this project to be complete.

1 download image from internet done Thanks Web Parser plugin
2 to a folder done Thanks DownloadFile=
3 automatic delete file function(to keep from taking up space) not done ??does it exist??
4 and an automatic sequential renaming not done ??rename function??

eg: www.source.jpg

download it to DownloadFile\source.jpg
automatically delete \source1.jpg and with a limmit number of 3
\source2.jpg
\source3.jpg
and all it does is add it to the bottom of the stack and renames the rest
so source1.jpg would be deleted,
source2.jpg would become source1.jpg,
source3.jpg would become source2.jpg and
source.jpg(from the net) would become source3.jpg

or it could go the other way and source.jpg would become source1.jpg and it bumps source3.jpg off
and the image slideshow would have to show the images in reverse

TLDR; Don't know if it exists but If I could just get some guidance on a possible rename function and a delete function.

Code: Select all

 
[ImageNumberCalc]
Measure=Calc
Formula=Counter % 20

[SunSpotMeasure]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=120
Url=http://sohowww.nascom.nasa.gov/data/realtime/mdi_igr/512/latest.jpg
Download=1
DownloadFile=SunSpot_.jpg
FinishAction=!RainmeterRedraw

[SunSpot]
Meter=Image
ImageName=#CURRENTPATH#DownloadFile\Spot_Sun_[ImageNumberCalc].jpg 
X=0
Y=34
DynamicVariables=1
Hidden=0
Last edited by Alex2539 on September 18th, 2010, 12:28 am, edited 1 time in total.
Reason: Fixed the [code] tag.
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: automatic sequential rename and delete Function?

Post by jsmorley »

There is nothing native to Rainmeter that can delete or rename a file. You are going to have to write something in a batch file, vbs script, autoit script, heck... About a thousand different ways, and then use an !Execute bang to run whatever you write.