Setting up the Eclipse tool to run a Windows command

I would like to create a tool to run the following command in Eclipse. However, I did not succeed because the β€œcopy” is not the β€œlocation” of the program, and therefore Eclipse does not recognize it.

copy /b ${env_var:SERVER_HOME}\pickup\star-web-custom.plan +,, 

Any suggestions? I am new to Eclipse.

+6
source share
3 answers
  • In "Location", enter ${env_var:SystemRoot}\system32\cmd.exe
  • In "Arguments" enter /c "copy /b ${env_var:SERVER_HOME}\pickup\star-web-custom.plan +,,"

This should help. If something goes wrong, just try to play with "Arguments" as something like a simple /c "somesimplecommandhere"

+8
source

Put this command in a script, and then set the location of this script (full path, including the full name of the script) in the Location text box.

+2
source

I usually write a thing like Ant task instead of configuring an external tool. This does not mean that you cannot do it. One of the advantages of the Ant task is that it is more portable.

+1
source

Source: https://habr.com/ru/post/887936/


All Articles