Cannot run batch files

  • Thread starter Thread starter Steve
  • Start date Start date
S

Steve

I am having a problem running batch files from a Windows XP, an error message
comes up with "Windows cannot find....... .bat"

Does anyone know of a fix?

Thanks,
 
Steve said:
I am having a problem running batch files from a Windows XP, an error message
comes up with "Windows cannot find....... .bat"

Does anyone know of a fix?

Thanks,
if you are running the from a command window it could be as simply as
your path. type:
echo %PATH%
and this will display what folders you search. If you .bat file is
not in one of these folders, windows gives up.

You either have to path to the batch file, or add the folder to your
search by modifying your environment in controlpanel ->system -advanced
-> environment variables. Just add ;C:\util to the existing
string for example.

Windows gui probably has the same issue. Only certain folders are
searched.
 
Thanks, but I have even tried moving the batch file into the C:\windows and
c:\windows\system32 both of which are in the environmental variables and I
get the same error?
 
Let's do some tests:
1. Click Start / Run / cmd {OK}
2. Type the following commands:
notepad c:\Windows\test.bat{Enter}
(Click Yes when prompted for a new file)
@echo off{Enter}
echo Today is %date%{Enter}
pause{Enter}
(Save & close the file)
c:\Windows\test.bat{Enter}
3. Report what you see on the screen.
 
Steve said:
I am having a problem running batch files from a Windows XP, an error
message comes up with "Windows cannot find....... .bat"

Does anyone know of a fix?

If it does say what you quoted, something's amiss. If Windows cannot find a
batch file from the command line, the system should report:

--- begin quote
'frog.bat' is not recognized as an internal or external command, operable
program, or batch file.
--- end quote
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top