Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: File copy progress.

by Fastolfe (Vicar)
on Dec 05, 2000 at 18:44 UTC ( #44990=note: print w/replies, xml ) Need Help??

in reply to File copy progress.

I'm not sure if this will work under Windows, but under Unix you can use \r instead of \n to return the cursor to the beginning of the line again. This makes percentage status reports "nicer" by keeping them on the same line. You just see the number go up. When you're done, print a \n.

Replies are listed 'Best First'.
Re: Re: File copy progress.
by zzspectrez (Hermit) on Dec 05, 2000 at 18:54 UTC

    Actually, I tested this under windows. At first I didnt use binmode on the filehandles, and it wouldnt work with binary files. But once I added that it worked fine.

    Thanks for the sugestion of using \r, Ill try that.


    UPDATE:In rereading your post, I think I missuderstood it.. Ill have to try the \r to see if it works under windows.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://44990]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2023-06-03 17:45 GMT
Find Nodes?
    Voting Booth?
    How often do you go to conferences?

    Results (16 votes). Check out past polls.