Category Archives: Visual Studio 2008

UpSync Version 0.7 Released

Update on November 25th, 2012
This application has been retired, as there are much better solutions available for free; please check out FreeFileSync instead.

The new version is here! As always, it is recommended to upgrade as soon as possible. Here are the major changes:

  • Administrator permissions are no longer required to run the application from the Program Files folder; application settings and logs are now stored in the Windows program data folders.
  • The application has been tested with and should now work fine with UAC under Windows Vista and Windows 7.
  • Summary logs have been added to the end of the logging to report count totals for the various operations.
  • Fixed a bug in the new syncing empty folders functionality that caused a neverending loop when the root of either folder was empty.
  • Added a “File Filter” property to mapped folders to allow the use of wildcards (*.txt) to restrict which files to sync (as requested by Jason Saul).

Simply run the setup to upgrade to the latest version.

[Download links removed]

Remember to share your thoughts and suggestions!

UpSync Version 0.6 Released

Update on November 25th, 2012
This application has been retired, as there are much better solutions available for free; please check out FreeFileSync instead.

I have a new version of UpSync to put out today! If you are regularly using the application, it is strongly recommended that you upgrade because the stability of the sync process has been greatly improved. Here’s a brief list of some of the more interesting changes:

  • Significantly improved error handling
  • Delete prompts are now all displayed at once (instead of throughout the process)
  • A new “stop prompting and do this for x remaining files” feature has been added
  • Code is now StyleCop-compliant (as well as code analysis-compliant)
  • Empty folders are now synced properly based on their creation date

You may simply run the new setup and it will automatically upgrade over whatever old version you have installed.

[Download links removed]

Please remember to comment and share your thoughts on the application! :)

Centering a Message Box on the Active Window in C#

One of the annoying caveats of using the built in .NET message box is that it provides no functionality to center a message box on the currently active window. Oddly, even when you specify the parent window using the proper overloaded version of the Show() method, the window still insists on centering itself on the desktop, instead of on the active window. This is annoying and confusing to the end user because it breaks the ability to set aside particular “screen real estate” for an application. Fortunately, there is a way to fix this, although it does involve the Win32 API.

Continue reading

6 Anal-Retentive Ways To Improve Your C# Code

Nothing irks me more than to have to dig through garbage code.  Working at a software consulting company, I’ve seen a whole slew of it.  And I’ve hurled on my computer monitor enough as a result to give it a pretty, brownish-green tint.  Bad code destroys hardware.  And souls.

The single biggest clue that a developer either has no idea what they are doing or simply doesn’t care about their code is inconsistency.  We all have different preferences and coding styles, but when a developer can’t pick a particular approach to take they come off as incredibly amateur, and for good reason.  Inconsistent code is difficult to read, and is thus difficult to modify in the future.

The majority (or even the entirety) of the list below revolves around writing consistently styled and consistently performing C# code.  Much of this list is admittedly anal retentive, but all of it is guaranteed to improve the quality and readability of your code.
Continue reading

UpSync Version 0.5 Released

Update on November 25th, 2012
This application has been retired, as there are much better solutions available for free; please check out FreeFileSync instead.

Below are the downloads for the setup and the sources for the first official release of UpSync, version 0.5.  As I stated in my previous post, it works properly in Windows XP and Vista, as well as Windows 7.  For a description of the application, and some screenshots, see the previous post.

If you use it, let me know!  I’m interested in any kind of feedback.

[Download links removed]

New Application – UpSync

Update on November 25th, 2012
This application has been retired, as there are much better solutions available for free; please check out FreeFileSync instead.

I recently started working on a new application called UpSync. From what you can probably already tell from the name, the application is meant to sync files between folders on different machines. It’s meant to be easy to use but also down and dirty enough to meet a typical system admin’s needs.

I’m open sourcing the project, and I’ll have the setup and the source code for version 0.5 up very shortly.  It works properly on Windows XP, Vista, and even Microsoft’s new, unreleased Windows 7 (the screenshots are from Windows 7).  It’s written in C#, my favorite of the .NET languages, using Visual Studio 2008.

Here are some of the key features that have already been implemented:

  • Any number of folders can be synced with separate settings for each folder.
  • Sync in one direction, the other direction, or both directions with no interaction necessary.
  • Specific settings for handling deleted files allow for all possible situations.
  • Syncing engine uses file dates and times to ensure the most recent version of files are replicated.
  • New files in either folder are automatically handled correctly and copied over to the other folder.
  • Sync process can be entirely automated or manually run.
  • Syncing engine logs every operation in complete detail so there is never any confusion as to what files were changed.