"Access is denied" message when redirecting console output to COM1

Discussion in 'Windows XP Drivers' started by BeachView, May 11, 2023.

  1. BeachView

    BeachView

    Joined:
    May 9, 2023
    Messages:
    3
    Likes Received:
    0
    This is not explicitly a driver question, but has to do with COM1 being inaccessible when using a DOS command in the CMD window of Windows XP. I have two XP laptops that communicate with each other via modems attached to each of their serial ports. The COM ports for the modems and the laptops are configured identically and correctly.

    In CMD, when I run a small C program to send a string from one laptop to the other using COM1, it works fine. The receiving laptop displays it on HyperTerm. However, when I tried typing

    echo hello > COM1

    while in CMD, nothing happened on the receiving laptop. Further, when I run a small C program while in CMD to do this with the line

    system (“echo hello > COM1”);

    I get an “Access is denied” message.

    Any insight as to why this is occurring and how to work around it will be very much appreciated!
     
    BeachView, May 11, 2023
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.