Friday, April 27, 2007

GUI version of Net Use

Here's a GUI version of the useful "net use" command.
You can create net use connections, delete existing connections, view list of existing connections and you can also create Drive Mappings.
Screenshot:
screenshot
Size : 1.3 MB
MD5 Hash of package (setup.exe): F25BBB701DB8E84AA532AEFC59B6E78A
Download It!
Hope you like. Mail any comments/bugs to siddharth_b@yahoo.com

Wednesday, April 18, 2007

It's a Timing Thing

Here's a small program I quickly whipped up. It shuts down Windows at a specified date and time. Its written in C++, you don't require .NET or any other runtimes.

Screenshot:
Screenshot

Download size: 156 KB
MD5 Hash of ZIP: 508FBAFDD04C72057EAB7F350DF22EE0
Download It

Sunday, April 15, 2007

Service Removal Utility

Here's a utility by your's truly which will remove Windows Services from your computers. Its written in C++, you don't require .NET or any other runtimes.

Screen Shot

Download Size: 109 KB
MD5 Hash of EXE: 36ca0af19cb9bda78bd39a956095029b

Download Now



Hope you liked it.

Friday, April 13, 2007

Compile error while using SHBrowseForFolder API in Borland C++ Builder

How annoying to see a perfectly good piece of code not compile!
That too for no fault of your own.

If you're using SHBrowseForFolder Shell API in a Borland C++ Builder project, you might run into the following problem:
Compile Error

To get around this all you need to do is define NO_WIN32_LEAN_AND_MEAN in the project settings like this:

Project Settings

Happy coding.

Sunday, April 1, 2007

Auto increment build number of .NET assemblies

Found a simple way to automatically increment the build number of .NET assemblies.
You need a program which will parse the AssemblyInfo.cs file and pick up the build number from there, increment and write back the file.

You'll need to call this program as part of your Pre Build step.

The program is a small C++ utility which does all the parsing and stuff. Its also not very intelligent, it can handle only versions specified as:
[assembly: AssemblyVersion("1.0.3.0")]

In the pre-build event command line, enter:
..\..\..\..\tools\IncBuildNumber.exe $(ProjectDir)Properties\AssemblyInfo.cs -build
This is for my project which has a directory structure like this:
Logman
|
- Tools
|
-Source
|
- Sid.Utilities

The Tools folder contains IncBuildNumber.exe
The Source\Sid.Utilities contains my C# project.

Note, for older .NET project, the AssemblyInfo.cs will not be under Project\Properties folder, it will be directly under the Project folder.

Last point, when building from the IDE, do not keep the AssemblyInfo.cs file open since this will cause the IDE to ask for reloading the file.

Here is the source code for the utility.
Here is a link to download the utility.