|
|
|||||||
Hello, Normal first post jargon: I'm new, but like the forum, hopefully you can answer my questions, and thanks ahead of time to any that answer. Problem: At work we use a program that likes to take hold of the local communications port, and doesn't like to share. Current Solution: In order then to use the COM port for another program/label printer etc. we have to first disable, and then enable the COM port. What I'm looking for: I have been trying to find a way to use a batch file to reset the COM port automatically without having to use devmgmt.msc every time I want to change programs. Any help/advice would be appreciated. I just discovered KiXtart today and have liked what I've seen so far. Thanks, Andy |
||||||||
|
|
|||||||
See if Devcon will do what you want. http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q311272 |
||||||||
|
|
|||||||
Hello ahoover and welcome to the board, Another tool you could use is: COMDisable It will let you: • View a list of available COM ports on your computer • Disable and enable these COM ports Operating System Requirements COMDisable is supported on computers that are running the following operating systems: • Windows Server 2003 • Microsoft Windows XP • Microsoft Windows 2000 Service Pack 3 (SP3) or later COMDisable Syntax COMDisable uses the following syntax: comdisable /list comdisable /disable COMPortNumber comdisable /enable COMPortNumber |
||||||||
|
|
|||||||
First, thanks to both of you. Benny69, unfortunately that is a passive reset needed reboot. So that won't work for my scenario. Allen, this worked for me. I'll add this to a batch script to run on startup, and add another on the desktop of the laptop to run on command. Thnaks again, and hopefully at a later time I can jump into the logon KiXtart scripting world. Andy |
||||||||
|
|
|||||||
Hi Andy, Could you please post the batch script that you uses? Can't make it work at all... Regards, Anders |
||||||||
|
|
|||||||
Hi Anders, Andy made his last post in 2008 so I guess he is no longer an active user. Can you share what you tried and the code you have up until now? |