Tips: March 2008 Archives

2008 Mar 28
flashplayer_100x100.jpgDownloaded an swf file but you do not know how to open it? You try to download a flash player from its website but it only works on a web browser. the only option to you is to install Flash, this is impractical if you only want to open swf files and not edit them considering the cost of buying the software.

I usually go to some flash sites with online games, then later ill browse my temporary internet folder for these swf files. Store them in a folder on my drive, then later whenever i wanted to play these flash games i would just simply go over to my saved swf folder and run it from there.

Adobe flash actually has its stand alone flash player. i you just know where to locate them on their site. The only catch is that its description is not clearly defined and explained.

To get the stand alone flash player go to the flash download page and scroll down to the link marked similar to this "Adobe Flash Player Projector Content", Choose an OS version and download it. Double click on the downloaded application and drag swf into it to play.
2008 Mar 15

Obviously, its seldom to see people using batch files nowadays. Most people dont even know what it is. On, contrary i still use them on my daily tasks to automate things, its like having Perl on a Linux box. but things are changing now, i guess using batch files isn't the trend anymore these days. The same with Linux OS, Windows also comes in handy with some tools used to automate tasks and using batchfiles is one of them. Since we're using Windows XP now, its also wise to do things in GUI mode in contrary with the old style DOS mode edit.

While downloading some pictures from a camera, I found them hard to manually rename its filename to a more meaningful title and not some random "DSC001323.JPG". After rename 10 or 15 files, i got bored, thinking this would take me forerver to rename them all for they are more than a thousand in total. If you can still recall that neat application called Irfan View, my life would have been alot easier.

Well anyway, lets change things we normally do and instead of using batch files we use vb script. A zipped version of the mass renaming script is also available for download.

''''''''''''''''''''''''''''''''''''''''''
' Mass Rename Script by tildemark
' http://www.tildemark.com
'
'
' Usage:
'   Place this script on a list of files you wish to rename.
'   Run this script by double clicking on the filename.
'
'
' For bugs send it to tildemark@gmail.com
'
''''''''''''''''''''''''''''''''''''''''''

Dim fso, Path, Folder, Counter, Prefix, File, Extension

set fso = CreateObject("Scripting.FileSystemObject")

Path = InputBox("Input the location of the files to be renamed. ('.' means current folder)", "Mass Rename Script", ".")

Prefix = InputBox("Input the filename prefix", "Mass Rename Script")
If Prefix = "\" Then WScript.Quit

Extension = InputBox("Input the file extension to be renamed", "Mass Rename Script")
If Extension = "\" Then WScript.Quit

Counter = InputBox("Input the starting offset", "Mass Rename Script")

Set Folder = fso.GetFolder(Path)

For Each File In folder.Files

  If Not ((File.Attributes And 8) = 8) Then
    If fso.GetExtensionName(File.Path) = Extension Then 
      File.Name = Prefix & CStr(Counter) & "." & Extension
    End If
  End If
  Counter = Counter + 1
Next

MsgBox("Done")

Today is

About this Archive

This page is a archive of entries in the Tips category from March 2008.

Tips: January 2008 is the previous archive.

Tips: November 2008 is the next archive.

Find recent content on the main index or look in the archives to find all content.

Recent Activity

Today

  • tildemark tweeted, "@jjdoblados SmartBro wont work with linux because the installer is an exe file. plus SMARTBRO sucks my dialup connection is even faster."
  • tildemark tweeted, "i think i accidentally drank 2 dosage of my medication. now, im feeling dizzy. is there a way i cound unswallow it?"

Monday

  • tildemark tweeted, "I'm feeling tired. i hope the clock will run a bit faster this time."
  • tildemark tweeted, "got sick for about 3 days. ended up finishing nwn2."

Thursday

  • tildemark tweeted, "im planning to move again, but i dont know where."

Sunday

  • tildemark tweeted, "I drank 3 sachets of instant coffee, ang now i cant sleep even if my eyes are sleepy? I can hear voices.wtf"

Friday

  • tildemark tweeted, "im so sleepy. Zzzzzzzz"

Sunday

  • tildemark tweeted, "some of my scipts are not working with godaddy. but works fine on the others. not mention their poorly coded admin page"

Thursday

  • tildemark tweeted, "so many pending tasks i need to finish. need more coffee !!!"
  • tildemark tweeted, "@gmtristan i dont think that is true."