'cp' is not recognized as an internal or external command

simo picture simo · Feb 10, 2013 · Viewed 28.6k times · Source

I tried to run a project using custom build in FlashDevelop:

$(CompilerPath)\haxe.exe $(ProjectDir)\compile-js.hxml

, but I get this error:

'cp' is not recognized as an internal or external command,

here is the compile-js.hxml file, is there any idea how to solve this?

compile-js.hxml

#sources
-main Cocktail
-cp ../../src/
-cp src

#binary
-js bin/js/Main.js
--macro Cocktail.create('src/index.html','Main')

#copy assets directory
-cmd cp -R assets bin\js\

Answer

Vineesh TP picture Vineesh TP · Jul 22, 2019

Stolen from Here :)

if you're running on windows you have to replace "cp" with "copy"