PC Review


Reply
Thread Tools Rate Thread

Cannot run batch files

 
 
Steve
Guest
Posts: n/a
 
      23rd Apr 2008
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,
 
Reply With Quote
 
 
 
 
Big Al
Guest
Posts: n/a
 
      23rd Apr 2008
Steve wrote:
> 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.
 
Reply With Quote
 
Steve
Guest
Posts: n/a
 
      23rd Apr 2008
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?

"Big Al" wrote:

> Steve wrote:
> > 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.
>

 
Reply With Quote
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      23rd Apr 2008
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" <(E-Mail Removed)> wrote in message
news:A76BC845-674D-4922-B481-(E-Mail Removed)...
> 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?
>
> "Big Al" wrote:
>
>> Steve wrote:
>> > 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.
>>



 
Reply With Quote
 
HeyBub
Guest
Posts: n/a
 
      23rd Apr 2008
Steve wrote:
> 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


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I batch convert 97-2003 .xls files to 2007 .xlsx files =?Utf-8?B?RGF2ZSBOdXR0YWxs?= Microsoft Excel Misc 4 3rd Aug 2009 11:38 PM
How can I convert a batch of .wpd files to Word 2007 files? SPW Microsoft Word New Users 3 15th Jul 2008 05:10 AM
calling multiple batch files from within a batch file yawnmoth Windows XP General 3 26th May 2008 06:47 PM
Re: In Vista, can .wps files be converted to .rtf files as a batch i.e. instead of one at a time? DL Windows Vista General Discussion 0 20th Mar 2008 12:57 PM
Photo Editor Batch supporting batch compression JPG files 29150 Freeware 2 23rd Jun 2003 06:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:33 AM.