Execute Command - CSV 2 XML
Posted: Tue May 29, 2012 11:17 am
Hi
I have trouble using the Execute Command.
I have found a free command line tool, which convert a CSV-file to XML.
It can be found here: http://www.jens-goedeke.eu/tools/csv2xml/
I have it installed and chosen in the Execute Command.
The arguements are set to: -s:"%1" -t:"%2" -sep:; -m:1 -enc:UTF-8
This does not work.
I have my logging in PowerSwitch set to debug, and can see the command which PowerSwitch tries to execute. If I copy it from the debug-log and run it in cmd.exe, then it works.
I have also tried to make the arguments to this: -s:"D:csv2xmlfsr-csv-inputInput.csv" -t:"D:csv2xmlfsr-xml-outputInput.xml"
So I have hard-coded the files and where the output should be. Just to see if it would execute. I have of course made sure that there are a file at the input location. If Switch is set to execute this it fails. If I run it from the command-line it works.
Does anybody have a good idea to what to do?
Kind regards
Jimmy Hartington
I have trouble using the Execute Command.
I have found a free command line tool, which convert a CSV-file to XML.
It can be found here: http://www.jens-goedeke.eu/tools/csv2xml/
I have it installed and chosen in the Execute Command.
The arguements are set to: -s:"%1" -t:"%2" -sep:; -m:1 -enc:UTF-8
This does not work.
I have my logging in PowerSwitch set to debug, and can see the command which PowerSwitch tries to execute. If I copy it from the debug-log and run it in cmd.exe, then it works.
I have also tried to make the arguments to this: -s:"D:csv2xmlfsr-csv-inputInput.csv" -t:"D:csv2xmlfsr-xml-outputInput.xml"
So I have hard-coded the files and where the output should be. Just to see if it would execute. I have of course made sure that there are a file at the input location. If Switch is set to execute this it fails. If I run it from the command-line it works.
Does anybody have a good idea to what to do?
Kind regards
Jimmy Hartington