Restore.bat does not work or throws errors
Posted by on 14 May 2019 17:20


When executing the Restore.bat batch file on a Windows Vista or Windows Server 2008 computer, there is no output and the archive is not restored.


The Restore.bat script changes the codepage of the command line to 65001 (UTF-8). Due to a bug in Windows, any successive input and output operation fails.

MailStore needs UTF-8 in this context because folder names in the file Restore.csv could include arbitrary characters.


This workaround only applies when there are only ASCII characters in the folder names of the archive stores. The path or folder name must not contain any spaces.

  • Remove the line CHCP 65001 in Restore.bat and save the file.
  • Open Restore.csv in Notepad and save the file with ANSI set as encoding.

Article-ID: KB20160125-0-EN (Deutsche Version)

(8 vote(s))
Not helpful

Remote Support

Please download our TeamViewer client in order to allow the MailStore support team a one-time only access to your system.

Premium Support

If your MailStore Server license includes Premium Support or you are using the MailStore Service Provider Edition, you are entitled to get in touch with our support team directly via phone.


+49 2162 50299-12


+1 800 747 2915