View Single Post
Old 12-31-2003, 08:11 PM   #1
Da_Teach
Newbie
 
Join Date: Oct 2003
Posts: 38
My Photos: ()
Cool Windows Service that raises DTR on powerup

I've written a small Windows Service that raises DTR on the com port of choice when the service is started... It will lower DTR when the computer goes into standby (probaby hibernate too, havent tested that) and it'll lower DTR when the service is stopped (which is also when your computer is shutdown, but before power is cut)...

Its written in Visual Basic.NET 2003, so it needs the .NET framework (v1.1) which can be downloaded via Windows Update...

You can download the service here:
http://www.wordtgek.nl/AmpCtrl_1.0.zip

To install the service you have to use InstallUtil which is present in the framework directory of .NET....

When your in the directory where you placed AmpCtrl, type the following:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Insta llUtil.exe AmpCtrl.exe

(to uninstall : C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Insta llUtil.exe -uninstall AmpCtrl.exe )

Modify the ampctrl.exe.config file and change the port number...

After that, the service should run next bootup...

The util is given as-is, dont blame me if something goes wrong... But it works like a charm for me (directly wired the DTR to my Amp)
Da_Teach is offline   Reply With Quote
Sponsored Links