Re: no file found running batch file

some file named "adddb.bat" contains the following: cp /recital/userx.db /recital/users.db

---AND ---

some file named "adderic.bat" contains the following: cp /recital/run/xusers.db /recital/run/users.db

IS THE ABOVE CORRECT???? A simply yes or no will suffice.

IF IT IS CORRECT, then:1) at the command line, you type EXACTLY WHAT? 2) what EXACTLY, is the error message. not just FILE NOT FOUND.

I suspect its as simple as an issue with the "bat" files not in the PATH, but you insist on ignoring questions.

HINTS: I) if it says "adddb.bat" or "adderic.bat" NOT FOUND, then the location of the bat file(s) aren't in your current path and you need to provide either:a) the full path to it, or, if b) if they reside in the current working directory, source them, as in . ./adderic.bat (that's dot space dot slash)c) modify the PATH to include the directory where they are located (but DON'T set it to ".")

II) If it says something like "cp ....FILE NOT" found, then file named in the script is not found where you think it should be.

Re: no file found running batch file

As all said you have to give full path of the batch file. check your file is physicly there or not if yes then check for the execute permission.if execute permission is there then you can run your batch program just give the batch name at the command prompt.or else you have to run like this