home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Weather Plugin Enhancement
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="jdiffend" data-source="post: 9537" data-attributes="member: 10910"><p>I use a download manager that does something like this. From the Getright download manager's daily download feature (so you aren't starting from scratch):</p><p></p><p>Special Values</p><p></p><p>Within the URL and file names ... you can use special values that GetRight will replace with the current date and time information. You may use these values anywhere in the path or file name.</p><p></p><p></p><p>%YY% Current year (2 digits--so 99 or 00)</p><p>%YYYY% Current year (4 digits--so 1999 or 2000)</p><p></p><p>%MM% Current Month (2 digits--'0' added if needed.)</p><p>%-M% Current Month (1 or 2 digits--no '0' added.)</p><p>%MON% Current Month (3 letter abbreviation..."apr"...always lowercase.)</p><p>%MONTH% Current Month (spelled out; December, etc.)</p><p></p><p>%D% Current Day (2 digits--'0' added if needed.)</p><p>%-D% Current Day (1 or 2 digits--no '0' added.)</p><p></p><p>%DAY% Current day of the week (spelled out; Monday, Tuesday, etc.)</p><p></p><p>%H% Current Hour (2 digits--'0' added if needed, 24-hour format)</p><p>%-H% Current Hour (1 or 2 digits--no '0' added, 24-hour format)</p><p></p><p>%M% Current Minute (2 digits) This is NOT guaranteed to be exactly the same minute of the time you set the download to be added.</p><p></p><p>%J% Days since the beginning of the year. (3 digits--'0' added if needed.)</p><p>%-J% Days since the beginning of the year. (not padded to 3 digits--no '0's added.)</p><p></p><p>%W% Week of the year (2 digits--'0' added if needed. 00 to 51)</p><p>%-W% Week of the year (1 or 2 digits--no '0' added. 00 to 51)</p><p></p><p></p><p>%N% An incrementing number to make the file name unique, first file 001, second file 002, etc. Does max out at 999.</p><p></p><p>%DATE-X%</p><p></p><p>%DATE+X% Lets you do a little math on the dates. Moves the date back (-) or forward (+) in time X number of days for doing the other replacements. This will work if going back X days means a different month or year. These can be anywhere in the value, they will be removed from the result. </p><p></p><p>And some Extra special values, not related to dates, but extra functions you can do or switches to turn on.</p><p></p><p>%ENV-xxx% Reads any Windows environment variables to include. The ones you might want most are %ENV-USERNAME% or %ENV-USERPROFILE%</p><p></p><p>Examples:</p><p></p><p>The filename value of:</p><p>c:\my-stocks\prices_%YYYY%-%MM%-%D%.html</p><p></p><p>On April 15th, 2000, would have saved to filename:</p><p>c:\my-stocks\prices_2000-04-15.html</p><p></p><p>Using the math</p><p></p><p>c:\my-stocks\prices%DATE-10%_%YYYY%-%MM%-%D%.html</p><p></p><p>On April 15th, 2000, would have subtracted 10 days from the date and saved to filename:</p><p></p><p>c:\my-stocks\prices_2000-04-5.html</p></blockquote><p></p>
[QUOTE="jdiffend, post: 9537, member: 10910"] I use a download manager that does something like this. From the Getright download manager's daily download feature (so you aren't starting from scratch): Special Values Within the URL and file names ... you can use special values that GetRight will replace with the current date and time information. You may use these values anywhere in the path or file name. %YY% Current year (2 digits--so 99 or 00) %YYYY% Current year (4 digits--so 1999 or 2000) %MM% Current Month (2 digits--'0' added if needed.) %-M% Current Month (1 or 2 digits--no '0' added.) %MON% Current Month (3 letter abbreviation..."apr"...always lowercase.) %MONTH% Current Month (spelled out; December, etc.) %D% Current Day (2 digits--'0' added if needed.) %-D% Current Day (1 or 2 digits--no '0' added.) %DAY% Current day of the week (spelled out; Monday, Tuesday, etc.) %H% Current Hour (2 digits--'0' added if needed, 24-hour format) %-H% Current Hour (1 or 2 digits--no '0' added, 24-hour format) %M% Current Minute (2 digits) This is NOT guaranteed to be exactly the same minute of the time you set the download to be added. %J% Days since the beginning of the year. (3 digits--'0' added if needed.) %-J% Days since the beginning of the year. (not padded to 3 digits--no '0's added.) %W% Week of the year (2 digits--'0' added if needed. 00 to 51) %-W% Week of the year (1 or 2 digits--no '0' added. 00 to 51) %N% An incrementing number to make the file name unique, first file 001, second file 002, etc. Does max out at 999. %DATE-X% %DATE+X% Lets you do a little math on the dates. Moves the date back (-) or forward (+) in time X number of days for doing the other replacements. This will work if going back X days means a different month or year. These can be anywhere in the value, they will be removed from the result. And some Extra special values, not related to dates, but extra functions you can do or switches to turn on. %ENV-xxx% Reads any Windows environment variables to include. The ones you might want most are %ENV-USERNAME% or %ENV-USERPROFILE% Examples: The filename value of: c:\my-stocks\prices_%YYYY%-%MM%-%D%.html On April 15th, 2000, would have saved to filename: c:\my-stocks\prices_2000-04-15.html Using the math c:\my-stocks\prices%DATE-10%_%YYYY%-%MM%-%D%.html On April 15th, 2000, would have subtracted 10 days from the date and saved to filename: c:\my-stocks\prices_2000-04-5.html [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Weather Plugin Enhancement
Contact us
RSS
Top
Bottom