Forum Discussion
TSeieroe
16 years agoContributor
I've tried /\ "" '' how do you get around the windows path?
The command works in a windows cmd window but fails in Groovy with:
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, Script30.groovy: 1: unexpected char: '\' @ line 1, column 33.org.codehaus.groovy.syntax.SyntaxException: unexpected char: '\' @ line 1, column 33. at
Process delete = 'cmd /c del "C:\SoapUI\soapUI 2.0.2\Data Files\DataSink*.csv"'.execute()
println '${delete.text}'
The command works in a windows cmd window but fails in Groovy with:
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, Script30.groovy: 1: unexpected char: '\' @ line 1, column 33.org.codehaus.groovy.syntax.SyntaxException: unexpected char: '\' @ line 1, column 33. at
Process delete = 'cmd /c del "C:\SoapUI\soapUI 2.0.2\Data Files\DataSink*.csv"'.execute()
println '${delete.text}'
Related Content
- 11 months agoakilan
- 12 years agoachand
- 12 years agopratyushdash
- 4 years agoThomas83
- 5 years agojerkins