The Warlocks Den - WoW Warlock DiscussionsThe Warlocks Den - WoW Warlock Discussions



Please Register to Remove these Ads

The Warlocks Den - WoW Warlock Discussions » Discussion Forums » Screenshots, Artwork and Movies » Screenshot sorting

Screenshots, Artwork and Movies Got a new robe? Found a great staff? Saw a creature we thought was extinct? Post a screenshot of it!! Also for WoW Movies, Artwork, wallpaper, etc.

Reply
Old April 13, 2007, 07:27 AM   #1 (permalink)

Screenshot sorting

Well, this is actually a response to a thread on the official WoW forums, but as I don't currently have an active subscription i can't post there.
http://forums.wow-europe.com/thread....75737823&sid=1

Anyway, I noticed the poster is also a regular on these forums so maybe I can catch him this way )

Here's a little screenshot renaming script for you:

Copy the following code into a text-file and name it e.g. "rename.vbs".
Place this new file in your screenshot folder and double-click it whenever you feel like renaming new screenshots to a date-sortable name.

Quote:
Option Explicit
Dim fso: Set fso = CreateObject("Scripting.FileSystemObject")
Dim FilesRenamed: FilesRenamed = 0
Dim CurrentFolder: Set CurrentFolder = fso.GetFolder(".")
Dim Files: Set Files = CurrentFolder.Files
Dim re: Set re = New RegExp
re.IgnoreCase = True
re.Pattern = "^WoWScrnShot_(\d{2})(\d{2})(\d{2})(.*)$"
Dim File
For Each File In Files
If Left(File.Name,1) <> "_" AND LCase(Right(File.Name,4)) = ".tga" Then
File.Move( re.Replace( File.Name,"_WoWScrnShot_$3$1$2$4" ) )
FilesRenamed = FilesRenamed + 1
End If
Next
MsgBox FilesRenamed & " files renamed."
Note: The script will also prefix any "fixed" files with an underscore (_). This is to keep track of which files are already renamed.

Enjoy!
(Yeah, was bored at work )
Umbul is offline   Reply With Quote
Sponsored Links

Reply

Bookmarks

Tags
screenshot, sorting

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 06:56 AM.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0