.bat error

#1
Hi;

I have write a .bat file for opening automatically CASPARCG. The server Start but I have an error Message. Doesn't Anyone has already got this problem?
Here is my .bat

Code: Select all

start /min c:\CASPARCG\Server\Server\casparcg.exe CasparCG.config
Here is the response.

Code: Select all

Type "q" to close application.
 ### Invalid configuration file. ###[2017-10-03 16:11:34.699] [3240] [error]   C
:\Program Files (x86)\JPress any key to continue . . . enkins\jobs\CasparCG Serv
er\workspace\dependencies\boost\boost/property_tree/detail/xml_parser_read_rapid
xml.hpp(101): Throw in function void __cdecl boost::property_tree::xml_parser::r
ead_xml_internal<class boost::property_tree::basic_ptree<class std::basic_string
<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> >,class
std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<
wchar_t> >,struct std::less<class std::basic_string<wchar_t,struct std::char_tra
its<wchar_t>,class std::allocator<wchar_t> > > >>(class std::basic_istream<wchar
_t,struct std::char_traits<wchar_t> > &,class boost::property_tree::basic_ptree<
class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allo
cator<wchar_t> >,class std::basic_string<wchar_t,struct std::char_traits<wchar_t
>,class std::allocator<wchar_t> >,struct std::less<class std::basic_string<wchar
_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > > > &,int,co
nst class std::basic_string<char,struct std::char_traits<char>,class std::alloca
tor<char> > &)
Dynamic exception type: class boost::exception_detail::clone_impl<struct boost::
exception_detail::error_info_injector<class boost::property_tree::xml_parser::xm
l_parser_error> >
std::exception::what: <unspecified file>: read error

[2017-10-03 16:11:34.744] [3240] [fatal]   Unhandled configuration error in main
 thread. Please check the configuration file (CasparCG.config) for errors.

Re: .bat error

#2
You have two possible solutions:

Code: Select all

start /min c:\CASPARCG\Server\Server\casparcg.exe c:\CASPARCG\Server\Server\CasparCG.config
Or

Code: Select all

cd c:\CASPARCG\Server\Server
start /min casparcg.exe CasparCG.config
I did not test these, but at least one of them should solve the issue :)
Didi Kunz
CasparCG Client-Programmer, Template Maker & Live CG-Operator
Media Support, CH-5722 Gränichen, Switzerland http://mediasupport.ch/
Problems? Guide to posting Bug reports & Feature requests
cron