Broken Remote

March 30, 2009

Utility Spotlight: RichCopy

Filed under: software — Tags: , , , , — Broken Remote @ 6:59 pm

Rich Copy

A neat looking utility that acts as a Front End for previously mentioned RoboCopy. Check it out!

March 3, 2009

Recursively Delete .svn directory [Windows]

Filed under: software — Tags: , , , , , — Broken Remote @ 3:19 am

Here’s a quick and easy way to delete that pesky .svn directory (recursively) so you don’t have to do it. This is useful when rearranging your subversion folders or for just removing old SVN data you don’t need anymore. Just create a .bat file with the following text, place the file into the main directory, then run it. It will delete all the .svn folders in the current directory and all those under it:

FOR /F "tokens=*" %%G IN ('DIR /B /AD /S *.svn*') DO RMDIR /S /Q "%%G"

December 1, 2008

Phun is Phun

Filed under: software — Tags: , — Broken Remote @ 7:00 pm

Overused Phun…I mean pun.

Phun is a neat 2D physics program (its free!) that lets you create circles, squares, polygons, freeform shapes, chains, motors, cars, etc. You can create your own simulations or just drag and draw stuff where ever you want it. It’s a lot of…phun.

Download here:

http://www.phunland.com/wiki/Home

November 3, 2008

Backing up your data using Robocopy: Redux

Filed under: software, windows — Tags: , — Broken Remote @ 2:12 pm

Some time ago, I wrote a post on how to back up your data using an effective batch script that utilizes a file copy utility called Robocopy. Turns out that’s a very popular post, so I want to offer a less hassled method of doing this for the less technically adept.

So a quick recap on Robocopy: It’s a command line utility that allows you to easily copy files from one place to another. Why is this better than just using the windows right click > copy menu to move your files? There are lots of reasons:

  • You can keep logs of what you’ve backed up
  • You can restart in the middle of a failed data copy
  • It’s most likely a lot faster
  • If one file has an error, the entire copy does not fail
  • You can do incremental backups. If you have a lot of data this means that it’s not going to re-copy your entire MP3 collection if you do the same backup twice in a row. This saves a lot of time

In short, it beats a basic copy all around. The primary problem is Robocopy isn’t a simple program that you can just download and easily use. You have to use a command line interface. But no worries, I’ve written one for you!

Before I list the script, there are some important things to know:

  1. WIndows Vista users, you will use a special version of the script that excludes junction points. Vista has some strange folder virtualization that makes it compatible with old Windows XP user profile paths. If you don’t use the correct script, it will get stuck in an infinite loop on certain folders, notably “Documents and Settings/username”.
  2. Windows XP users, you cannot use the exclude junction point version as Robocopy probably won’t recognize that command. I’ve posted both versions below
  3. Windows XP users, you have to install the Windows 2003 Server Resource Kit in order to use Robocopy. Vista users, it’s already installed on your operating system.

So without further ado, here are two backup scripts.

Instructions:

Copy and paste the entire text of the correct version of the script below into notepad (Start > Programs > Accessories > Notepad).

Save that file as “backup.bat”, including the quotes, to somewhere you will remember, like your Windows desktop.

Go to that location and make sure you see a file named “backup.bat”, this time without the quotes. It should have a weird icon with a gear on it or just a plain white window.

Double click on the file to run it. A black window should pop up. Just follow the on screen instructions.

Important note: You must create the backup directory before you run the backup. For example, if you wanted to backup C:/Users/smith to D:/myProfileBackup, you should go to My Computer > D:/ and create a new folder called myProfileBackup before you run the script or you will get an error.

Leave me a comment if you have any questions!

Windows Vista Users:

@ECHO off

ECHO.
ECHO    * – - – - – - – - – - – - – - – - – - – - – - *
ECHO    *                                             *
ECHO    *     Robocopy Backup Utility for Windows     *
ECHO    *     by Broken Remote via                    *
ECHO    *     brokenremote.wordpress.com              *
ECHO    *     Free for any use and modification       *
ECHO    *                                             *
ECHO    * – - – - – - – - – - – - – - – - – - – - – - *
ECHO.

ECHO    Instructions:
ECHO.
ECHO      1. Enter the drive letter of the drive with the data to backup (ie: “C”)
ECHO      2. Enter the path to the folder you wish to backup (ie: “Documents and Settings/Smith”)
ECHO      3. Enter the drive letter of your backup drive (ie: “E”)
ECHO      4. Enter the path to the specific backup location (ie: “backups/novemberBackup”)
ECHO      5. Verify your options and press “Y” to proceed or “N” to exit
ECHO.
ECHO  ____________________________________________________
ECHO.

:: Prompt for inputs
SET /P sourceLetter=1. Source drive letter:
SET /P sourcePath=2. Path to data you wish to backup:
SET /P destinationLetter=3. Destination drive letter:
SET /P destinationPath=4. Path to backup folder:

:: Set full source and destination
SET source=%sourceLetter%:/%sourcePath%
SET destination=%destinationLetter%:/%destinationPath%

ECHO.
ECHO  ____________________________________________________
ECHO.

:: Verify source and destination
ECHO      You are copying data from
ECHO.
ECHO      %source%
ECHO.
ECHO      to
ECHO.
ECHO      %destination%

ECHO.
ECHO  ____________________________________________________
ECHO.

SET /P continue= Proceed? (Y/N):
IF /I %continue%==N GOTO END

:: Set the logfile
SET logfile=%destination%/backup.log

:: Set the options. Note to remove the /XJD option on Windows XP
SET options=/MIR /XJD /LOG:%logfile% /R:0 /W:0 /TEE

:: Start the copy
ROBOCOPY %source% %destination% %options%

:END
ECHO.

pause

:: ROBOCOPY COMMAND OPTIONS

:: Do ROBOCOPY /? in a command prompt for details on other flags
:: /MIR = delete files from destination that have been deleted on source
:: /LOG = create a log file
:: /R:0 = don’t retry a file if it fails. Change number as you wish
:: /W:0 = don’t wait to retry a file if it fails. Change number as you wish
:: /TEE = output progress to console window. Turn this on if you want to see the file copy report at the end of your copy and progress during
:: /XJD = Windows Vista has some weird folder virtualization to prevent programs from accessing folders directly. Exclude Junction points to fix this.

Windows XP Users:

@ECHO off

ECHO.
ECHO    * – - – - – - – - – - – - – - – - – - – - – - *
ECHO    *                                             *
ECHO    *     Robocopy Backup Utility for Windows     *
ECHO    *     by Broken Remote via                    *
ECHO    *     brokenremote.wordpress.com              *
ECHO    *     Free for any use and modification       *
ECHO    *                                             *
ECHO    * – - – - – - – - – - – - – - – - – - – - – - *
ECHO.

ECHO    Instructions:
ECHO.
ECHO      1. Enter the drive letter of the drive with the data to backup (ie: “C”)
ECHO      2. Enter the path to the folder you wish to backup (ie: “Documents and Settings/Smith”)
ECHO      3. Enter the drive letter of your backup drive (ie: “E”)
ECHO      4. Enter the path to the specific backup location (ie: “backups/novemberBackup”)
ECHO      5. Verify your options and press “Y” to proceed or “N” to exit
ECHO.
ECHO  ____________________________________________________
ECHO.

:: Prompt for inputs
SET /P sourceLetter=1. Source drive letter:
SET /P sourcePath=2. Path to data you wish to backup:
SET /P destinationLetter=3. Destination drive letter:
SET /P destinationPath=4. Path to backup folder:

:: Set full source and destination
SET source=%sourceLetter%:/%sourcePath%
SET destination=%destinationLetter%:/%destinationPath%

ECHO.
ECHO  ____________________________________________________
ECHO.

:: Verify source and destination
ECHO      You are copying data from
ECHO.
ECHO      %source%
ECHO.
ECHO      to
ECHO.
ECHO      %destination%

ECHO.
ECHO  ____________________________________________________
ECHO.

SET /P continue= Proceed? (Y/N):
IF /I %continue%==N GOTO END

:: Set the logfile
SET logfile=%destination%/backup.log

:: Set the options. Note to remove the /XJD option on Windows XP
SET options=/MIR /LOG:%logfile% /R:0 /W:0 /TEE

:: Start the copy
ROBOCOPY %source% %destination% %options%

:END
ECHO.

pause

:: ROBOCOPY COMMAND OPTIONS

:: Do ROBOCOPY /? in a command prompt for details on other flags
:: /MIR = delete files from destination that have been deleted on source
:: /LOG = create a log file
:: /R:0 = don’t retry a file if it fails. Change number as you wish
:: /W:0 = don’t wait to retry a file if it fails. Change number as you wish
:: /TEE = output progress to console window. Turn this on if you want to see the file copy report at the end of your copy and progress during
:: /XJD = Windows Vista has some weird folder virtualization to prevent programs from accessing folders directly. Exclude Junction points to fix this.

October 27, 2008

Annilihate IM Spam with Pidgin Bot Sentry

Filed under: software — Tags: , , — Broken Remote @ 11:22 pm

Pidgin
Tired of getting spam instant messages on MSN, AIM, Yahoo, etc? Most likely it’s because you’ve posted your IM address on a website and a spam bot has picked it up and is now bombarding you with all sorts of annoying messages. Well fear no more, you can protect yourself.

Granted, this is a Pidgin-only fix. Pidgin is an all-in-one chat client that lets you merge all of your instant message programs into one high quality solution. Learn more from their website: Pidgin IM Client

So what’s the fix? It’s called Bot Sentry and it’s simply a plugin for Pidgin. You can download it here: Bot Sentry

All you have to do is install bot sentry, then configure your plugins in Pidgin. What this program does is sends a message back to anyone who messages you that is not on your buddy list. If they can answer it, their message goes through to you. You can customize the message – the default asks them to spell the number 10. Simple and effective, highly recommended.

5/5 Stars 5/5 Stars for simplicity and awesomeness.

Older Posts »

Theme: Silver is the New Black. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.