csePixelated
asked on
batch scripts not running after 1st line
on several workstations i cannot run multi line batch files or it seems i cannot write to my coms
it seems to run the 1st line and pause,
i then have to ctrl+c
it askes if i want to terminate the batch job (Y/N)
this happens when it is run from command line or from the batch
@echo on
set /p x="a01F 835318130300001" <nul >\\.\com17
set /p x="a01F 835318131400001" <nul >\\.\com17
set /p x="a01F 835318331400001" <nul >\\.\com17
EXIT
could windows firewall be effecting this?
it seems to run the 1st line and pause,
i then have to ctrl+c
it askes if i want to terminate the batch job (Y/N)
this happens when it is run from command line or from the batch
@echo on
set /p x="a01F 835318130300001" <nul >\\.\com17
set /p x="a01F 835318131400001" <nul >\\.\com17
set /p x="a01F 835318331400001" <nul >\\.\com17
EXIT
could windows firewall be effecting this?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
well a restart after setting the serial port settings did the trick on one pc, then another stops working,
ty for the link, it may help.... i think the problem is im using a "Digi- port-server ts 8 MEI" and im trying to use the same port.... it would seem the port server locks ports to a specific ws....
does anyone know anything that will help, I would like to have multiple pc,s able to send data to the serial port without having to wrestle with each pc to get it to connect.
Bill i will accept your answer as one of the solutions as it has been quite help full, i normally use "tera term pro" it only can connect to ports 1-4...
ty for the link, it may help.... i think the problem is im using a "Digi- port-server ts 8 MEI" and im trying to use the same port.... it would seem the port server locks ports to a specific ws....
does anyone know anything that will help, I would like to have multiple pc,s able to send data to the serial port without having to wrestle with each pc to get it to connect.
Bill i will accept your answer as one of the solutions as it has been quite help full, i normally use "tera term pro" it only can connect to ports 1-4...
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
@echo off
echo hello
echo world
pause
it ran fine, so it would seem to have to do with the com
the below sets the com17 settings then stops
@echo on
mode com17 9600,E,8,1,P
echo 0000 1> com17
pause