Page 1 of 1 1
Topic Options
#190110 - 08/10/13 04:19 PM Script a COM port disable/enable reset
ahoover Offline
Just in Town

Registered: 08/10/13
Posts: 2
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

Top
#190111 - 08/10/13 07:11 PM Re: Script a COM port disable/enable reset [Re: ahoover]
Allen Moderator Offline
KiX Supporter
*****

Registered: 03/04/19
Posts: 3855
Loc: USA
See if Devcon will do what you want.
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q311272

Top
#190112 - 08/10/13 08:03 PM Re: Script a COM port disable/enable reset [Re: ahoover]
Benny69 Moderator Offline
Moderator
*****

Registered: 03/10/29
Posts: 1036
Loc: Lincoln, Ne
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
_________________________
Wait don't order yet,... get KiXforms Designer .NET 2.0 (Beta)
KiXforms Designer .NET 2.0 (Beta)

Top
#190127 - 08/10/15 01:38 PM Re: Script a COM port disable/enable reset [Re: Benny69]
ahoover Offline
Just in Town

Registered: 08/10/13
Posts: 2
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

Top
Page 1 of 1 1


Moderator:  Bryce, Jochen, Howard Bullock, Allen, Sealeopard, Radimus, Kdyer, Chris S., Glenn Barnas, Benny69, ShaneEP, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Jochen) and 45 anonymous users online.
Newest Members
Gattonero_76, guanacoh, adotts22, Marco308, Kevin_Wandtke
16779 Registered Users

Generated in 0.034 seconds in which 0.013 seconds were spent on a total of 14 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org