S
Sid Elbow
I'm trying to run the following batch file:
@echo off
rem ***Set cbreak parms here, after the equals sign ***
set cbreakparms=-b60 -d20 -s60
:again
if "%1"=="" goto end
mkdir "%~dp1cbreak"
cbreak "%1" "%~dp1cbreak\%~nx1" %cbreakparms%
shift
goto again
:end
It fails with the message:
" 'cbreak' is not recognized as an internal or external command,
operable program or batch file"
..... yet the program cbreak.exe does exist and is in the same directory
as the batch file. If I edit the batch file and give the full path to
cbreak the batch will run correctly - I don't particularly want to do
that since it will make the batch file location-dependent.
Why does it not find cbreak in it's own directory?
@echo off
rem ***Set cbreak parms here, after the equals sign ***
set cbreakparms=-b60 -d20 -s60
:again
if "%1"=="" goto end
mkdir "%~dp1cbreak"
cbreak "%1" "%~dp1cbreak\%~nx1" %cbreakparms%
shift
goto again
:end
It fails with the message:
" 'cbreak' is not recognized as an internal or external command,
operable program or batch file"
..... yet the program cbreak.exe does exist and is in the same directory
as the batch file. If I edit the batch file and give the full path to
cbreak the batch will run correctly - I don't particularly want to do
that since it will make the batch file location-dependent.
Why does it not find cbreak in it's own directory?