# Chcp error running batch file

**URL:** <https://resource.dopus.com/t/chcp-error-running-batch-file/5219>\
**Category:** Help & Support\
**Created:** [December 24, 2007, 7:27am UTC](https://resource.dopus.com/t/chcp-error-running-batch-file/5219 "2007-12-24T07:27:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hoonose](https://resource.dopus.com/letter_avatar_proxy/v4/letter/h/8491ac/32.png) [@hoonose](https://resource.dopus.com/u/hoonose)\
**Post date:** [December 24, 2007, 7:27am UTC](https://resource.dopus.com/t/chcp-error-running-batch-file/5219/1 "2007-12-24T07:27:09Z")

</div>

Running Vista Home Premium & DO 9.1

I have made a button to compare two files as follows:  
MS-DOS Batch Function  
c:\windows\system32\fc.exe /b {filepath$} {filepathdest$}  
pause  
@nodeselect

Although the script works ok I always get the message below about ‘chcp’

'chcp' is not recognized as an internal or external command,  
operable program or batch file.  
Comparing files D:\SOFTWARE\ADOBE FLASH PLAYER V9.0.115.0\install\_flash\_player\_a  
ctive\_x.msi and D:\DOWNLOADS\INSTALL\_FLASH\_PLAYER\_ACTIVE\_X.MSI  
FC: no differences encountered

Anybody know why this is?  
It looks to me as though DO is trying to run chcp even though I do not ask it to.

😕

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [December 24, 2007, 9:10am UTC](https://resource.dopus.com/t/chcp-error-running-batch-file/5219/2 "2007-12-24T09:10:26Z")

</div>

Sounds like something is wrong with your Windows install and C:\Windows\System32 is no longer in the command path. (Or [chcp.com](http://chcp.com) has been deleted from there.)

---

<div class="post-metadata">

**Author:** ![hoonose](https://resource.dopus.com/letter_avatar_proxy/v4/letter/h/8491ac/32.png) [@hoonose](https://resource.dopus.com/u/hoonose)\
**Post date:** [December 24, 2007, 9:54am UTC](https://resource.dopus.com/t/chcp-error-running-batch-file/5219/3 "2007-12-24T09:54:09Z")

</div>

> [@nudel](#):
>
> Sounds like something is wrong with your Windows install and C:\Windows\System32 is no longer in the command path. (Or [chcp.com](http://chcp.com) has been deleted from there.)

OK problem solved, thanks for your help.  
It seems jv16 had messed with my command path.  
I reset the command path and all was well again.  
😃
