There is no "COPY.EXE" on your Windows system, so you can't evoke it
this way. COPY is a built-in command of CMD.EXE or COMMAND.COM,
depending on what flavor of windows is running.

You'd need to do something like (system cmd /c "copy f1.txt f2.txt").

See the Java Programmer's FAQ, section 18, question 10, at
http://www.afu.com/javafaq.html . 


I think [EMAIL PROTECTED] wrote:
> Hello jess-users,
> 
> Jess, the Java Expert System ShellCopyright (C) 1998 E.J. Friedman Hill and the 
>Sandia CorporationJess Version 6.0 12/7/2001
> 
> Jess> (system copy f1.txt f2.txt)
> Jess reported an error in routine system
>         while executing (system copy f1.txt f2.txt).
>   Message: (system copy f1.txt f2.txt).
>   Program text: ( system copy f1.txt f2.txt )  at line 1.
> Nested exception is:
> CreateProcess: copy f1.txt f2.txt error=2 java.io.IOException: CreateProcess: copy 
>f1.txt f2.txt error=2        at java.lang.Win32Process.create(Native Method) at 
>java.lang.Win32Process.<init>(Win32Process.java:63)  at 
>java.lang.Runtime.execInternal(Native Method)        at 
>java.lang.Runtime.exec(Runtime.java:550)     at 
>java.lang.Runtime.exec(Runtime.java:475)     at 
>java.lang.Runtime.exec(Runtime.java:441)     at 
>jess.JessSystem.call(MiscFunctions.java:349) at 
>jess.FunctionHolder.call(FunctionHolder.java:37)     at 
>jess.Funcall.execute(Funcall.java:270)       at 
>jess.Jesp.parseAndExecuteFuncall(Jesp.java:1596)     at 
>jess.Jesp.parseSexp(Jesp.java:183)   at jess.Jesp.parse(Jesp.java:62)        at 
>jess.Main.execute(Main.java:123)     at jess.Console.execute(Console.java:74)        
>at jess.Console.main(Console.java:91)Jess>    
> 
> Many thanks for any help.
> -- 
> Sincerely,
>  Ru                          mailto:sorokinru@;mail.iias.spb.su
> 




---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
Org. 8920, MS 9012                  [EMAIL PROTECTED]
PO Box 969                  http://herzberg.ca.sandia.gov
Livermore, CA 94550

--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to