Tag Archive: VBScript

Sep 07

iTunes Podcast Playcount Updater ver2

This is a script to keep iTunes from unsubscribing to podcasts that you do not listen to regularly.
To use, save the following text into a file with the extension “vbs” for example “KeepPodcasts.vbs”. Then either put it in your task scheduler or run it regularly.
2012-01-26 Update: Modified script to load the “Podcasts” playlist and check all items rather than looping through the entire library looking for individual podcasts. This makes the script run much faster for users with large iTunes libraries.

Continue reading »

Permanent link to this article: https://www.wperry.net/code/itunes-podcast-playcount-updater-ver2/

Aug 31

Password Generator (PWGen.vbs)

A script to generate a random 8 character password that contains upper and lower case letters, a number, and a special character/symbol.

Continue reading »

Permanent link to this article: https://www.wperry.net/code/pwgen/

Aug 24

Check for Upper and Lower Case Function (chkUprAndLwrCase)

This function will check a string to make sure it contains both upper and lower case characters

Continue reading »

Permanent link to this article: https://www.wperry.net/code/chkuprandlwrcase/

May 18

Truncate a String to a Specific Length Function (trunkString)

Truncates a string to a given length and adds a “…” at the end. If the string is not truncated (shorter than max) returns the same string that was sent.

Continue reading »

Permanent link to this article: https://www.wperry.net/code/trunkstring/

May 04

Check Array for String Function (isInArray)

Checks to see if a string is in an array, also allows

Continue reading »

Permanent link to this article: https://www.wperry.net/code/isinarray/

Apr 13

File Path Cleaner Function (clnFile)

Prevents travesing of a directory tree by using “..” to move above the allowed area.

Continue reading »

Permanent link to this article: https://www.wperry.net/code/clnfile/

Mar 23

Anternating Colors Function (altColor)

Each time the function is called alternates between returning the two values.
Useful for alternating colors in a table.

Continue reading »

Permanent link to this article: https://www.wperry.net/code/altcolor/

Mar 16

PageThief

Uses the MSXMLHTTP object to pull a webpage and place it into a string variable.

Continue reading »

Permanent link to this article: https://www.wperry.net/code/pagethief/

Feb 09

Safe Format Date Function (fmtDate)

Checks for valid date before performing formatdatetime function on a string/date

Continue reading »

Permanent link to this article: https://www.wperry.net/code/fmtdate/

Jan 19

Format Text Function (fmtText)

Converts line breaks in a string to
for html display

Continue reading »

Permanent link to this article: https://www.wperry.net/code/fmttext/

Older posts «