rm is not recognized as an internal or external – OHS startComponent.cmd and stopComponent.cmd

If you installed OHS 12.1.2.0 on Windows then you might run into this issue when attempting to use the startComponent.cmd and stopComponent.cmd commands:

startComponent.cmd and stopComponent.cmd return rm is not recognized as an internal or external...

This is a bug (BUG 17276497). Pretty simple fix:

edit the startComponent.cmd and stopComponent.cmd files in DOMAIN\bin
Replace the following line:

if exist %PY_LOC% (
rm -f %PY_LOC%
)

With this line:

if exist %PY_LOC% (
del %PY_LOC%
)
Previous
Previous

cannot delete files – file name is too long

Next
Next

list all processes and their command-line parameters in windows