@chonerman



Oct 21 2009

Below is a very basic way to check for error’s when creating basic Vb-script’s. Just add this procedure to your script and call it after your main code has been executed. This is useful if you run and test a lot of scripts from the command prompt on a Windows machine. I wouldn’t recommend this as a long term production solution but it’s quick and gets the job done for trouble shooting!


Aug 14 2009

Today I am going to talk about a handy dandy little command available to us from the Windows Command Prompt.

If you are like myself and work in the IT world your computer and the applications, tools and configuration of it mean the world. Sometimes, as in my case, you have a set of applications and tools that are constantly open on your machine, from the time you flick it on until the time you shut down for the day. Instead of having to start each application individually each time you boot up, wouldn’t it be nice to have them all start as part of the computer booting up? Take for example myself. I ALWAYS have TOAD, OUTLOOK, a Browser, and AutoSys open on my work laptop. So I created a simple batch file that uses the START command to open all these tools for me when my computer starts up. That way I can boot my computer, then go get some coffee, chat with a colleague or get some breakfast, and when I get back all those applications are loaded and ready for use.

I know half of you are saying, “Chace, why don’t you just add these items to your Start Up directory?” That is a good question, but I have found with different versions of Windows and depending upon the application, they don’t always start up as desired. Aside from that this gives you one place to add, subtract and adjust what you want to start, just simply by editing the Batch File. Read the entire post…


Jan 17 2009

Simple Encryption Tool

Posted by: Chace in Categories: Code, Encryption, Privacy, VBScript.
Using Tags: , , ,

So lately I have been trying to keep better records of my spending habits to better understand my financial status. This means I have been recording all my bills, when they were paid, all my receipts for everything from food to gas, entertainment to clothes. I got this idea from my cousin who has been doing this for some time and I just made my own modified version based off his spreadsheet. I carry this spreadsheet with me on my 4gb thumb drive along with some useful apps, some music, Xampp and a few other things. What happens if I lose my thumb drive accidentally? Whoever finds it could then go through all this information and do what they please with it.

Since I work for a company on a system that uses different forms of authentication and encryption for sensitive data I decided to take my first attempt at a simple yet effective encryption tool for my Financial spreadsheet. This actually turned out pretty good in that it can be used on roughly any type of file and is so jumbled that unless the person trying to decrypt the info has your passkey, they data is gone! Any how the name of the file is EncDec.vbs and as you can see is written in VBScript and can be run by double clicking the file. Since the VBScript isn’t compiled and can be seen by anyone you would think that someone could simply reverse the code to decrypt the file, but without the passkey it is not likely at all. Read the entire post…


Dec 07 2008

iTunes Tools

Posted by: Chace in Categories: Code, Programming, Visual Basic.
Using Tags: , , , , ,

After a recent post about a VBScript written by Jeff Story at treeratfishing.com that removes duplicate songs from iTunes for you I decided to use some of his code, modify it, and add some of my own and put it into a GUI. It is written in Visual Basic and requires you have the .NET framework installed on your machine, which I would advise anyone to have since there are a lot of applications that use this framework. Chances are you probably already have a version of this framework installed on your machine. If you don’t, as part of the installation of the iTunes Tools it will install any framework files for you.

Here is what the GUI looks like:

The application not only will check your iTunes library for duplicate entries and then remove the duplicate based on a few decisions. It will keep the newest, largest or highest quality entry. It will also look for any entries in iTunes that don’t have a matching file on your system. These entries would show up in iTunes with a ‘!’ icon next to them meaning that it doesn’t know where the file is. One last thing that I found useful is that you can select your Music directory where you rip, download or save your files for iTunes. The application will match all songs in your library to the files in the directory you choose. Any files that don’t already have an entry in iTunes will be added to iTunes. This helps ‘sync’ your music directory with iTunes without having to pick files to add or adding an entire folder (which leads to duplicate entries).

Please let me know if you find errors or suggestions of any kind, as well as if you like how it works or not. I am thinking about making an updated version that will give you the option to run this on a time interval so that it will sync and remove dupes say every hour or every fifteen minutes.

I also have a SourceForge project opened for this. I will be posting the source code for this as well once I clean up and comment the code. You can download the application here, iTunes Tools, or you can get it off of my downloads page.


Nov 17 2008

Remove Duplicates from iTunes

Posted by: Chace in Categories: Code, VBScript.
Using Tags: , , , ,

A lot of times when we are adding songs to our beloved iTunes, we don’t have time or patience to load songs individually so we just add the whole music folder, causing iTunes to load duplicates of the same song. Several friends have asked me if there is a way to removed duplicate tracks from an iTunes library. Jeff Story of treeratfishing.com thankfully already had a script made that does this job for us.

To do this, simply download the Visual Basic Script from here and save it first, then run it from your machine. The original script would not let you know it was running until it finished. One way to be sure or to check on it is to navigate to your iTunes main music library and watch the statistical information at the bottom of the window. If this script is still running you will see the total songs decrease. Once the script has finished it will give you a pop-up alert telling you it is finished. I have also modified the version downloaded from my site to alert you that the script is starting to make life easier.

I usually run this two or three times just to make sure it gets all the duplicates and even triplicates (is this a word?).

Another issue with iTunes is that when we download music from an application other than iTunes, a lot of times we have to manually add the music to our iTunes library. I am in the process of creating a script that will add any new songs found in a specified folder to the iTunes music library, and this will also help make life easier as well as stop us from loading all these duplicates. In addition I also have a SourceForge project open for this script which you can find here. There isn’t much there now since it isn’t finished but just FYI.

Older Posts »