Please remove me from your mailing list.
Baglan Dosmagambetov <[EMAIL PROTECTED]>@java.sun.com> on 04/26/2000
07:43:29 AM
Please respond to "A mailing list for discussion about Sun Microsystem's
Java Servlet API Technology." <[EMAIL PROTECTED]>
Sent by: "A mailing list for discussion about Sun Microsystem's Java
Servlet API Technology." <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc:
Subject: Re: I need Help with Runtime
----- Original Message -----
From: Jos� Garrido Carrillo <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 26, 2000 1:14 PM
Subject: I need Help with Runtime
Guessing from your code, you use MSWindows. Under Windows there is no
command like 'copy' because it's implemented within 'command.com' (unlike
UN*X systems where 'cp' is a separate file).
So instead of calling 'copy' you can either:
1. Copy it yourself
2. Call 'command.com /C copy from_here to_there'
3. Call 'xcopy from_here to_there'. xcopy, unlike copy, is a separate
executable and at least under DOS it offered somewhat higher performance.
Baglan
>
> My servlet upload a file to temporal directory, and i need move it to
> other location. My servlet does:
>
> try{
> Runtime.getRuntime().exec("copy "+ f.toString()+ "
> "+"c:\\kk\\copia\\"+f.getName());
> }
> catch (IOException ex){
> out.println("<br>"+ ex.getMessage());
> }
>
> but I receive this text in browser:
>
> CreateProcess: copy C:\kk\16390\cursoVA.cae c:\kk\copia\cursoVA.cae
> error=2
>
> And the file hasn't be moved....
>
> Excuse me, but my english is very bad
>
> Thanks in advance...
>
>
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html