webstormmulti-tenantxcopyvisual-studio-macrosexternal-tools

How to create a new configuration using External tools in WebStorm


I am creating a multi tenant client mobile(Cordova) application. I want to copy the appropriate client files from a folder to the project in deployment time.

I am using WebStorm IDE for development. Project has a folder called branding which contains multiple client specific files in folders. Using WebStorm, I created a new configuration using external tools.

To copy the files in deployment time, I used the command xcopy $FileParentDir$branding\abc\*.* $FileParentDir$www\branding /S /Y

It says cannot run program... CreateProcess error=2, The system cannot find the file specified

enter image description here


Solution

  • Please use 'Parameters' field to specify xcopy options - leave 'xcopy' as 'Program' and move '$FileParentDir$\branding\abc\*.* $FileParentDir$\www\branding /S /Y' to 'Parameters' field