karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Poth <poth.j...@gmail.com>
Subject Re: shell:exec
Date Thu, 03 Nov 2016 09:03:49 GMT
Hi,

You have to escape the backslashes with another backslash in the paths if
you haven't already, so something like

shell:exec copy C:\\path\\to\\file.bar foo.bar

Should do the trick. If not absolute, the paths will be relative to your
Karaf installation directory.

cheers,

John.

On Wed, Nov 2, 2016 at 10:22 PM, Leschke, Scott <SLeschke@medline.com>
wrote:

> What’s the trick to getting this to work?  I just want to copy a file from
> one place to another on windows and no matter what I try, I get
>
> “System Error 2: The system cannot find the file specified (or something
> to that effect)” even though the paths are absolute.
>
>
>
> Anybody have an example of usage?
>

Mime
View raw message