IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Well, yes, actually it does . . .
. . it's never been important to me so I've never thought of it. Of course it's the entire output not just the errors but the error lines should be easy to spot because they're long.
[link|http://www.aaxnet.com|AAx]
New Arrrg, errors are not redirected
The errors are still displayed *only* to the console, while the regular chatter goes to the file when ">" is used. In other words, it seems error messages superseed redirection. Odd.

ADDENDUM:

I tried something like this:

xcopy .... 1>log.txt 2>err.txt

But it does not tell me which file the error is associated with.
________________
oop.ismad.com
Expand Edited by tablizer June 18, 2007, 08:03:18 PM EDT
New Try redirecting to the same file.
Try:

xcopy .... 1>>log.txt 2>>log.txt

--
[link|mailto:greg@gregfolkert.net|greg],
[link|http://www.iwethey.org/ed_curry|REMEMBER ED CURRY!] @ iwethey
PGP key: 1024D/B524687C 2003-08-05
Fingerprint: E1D3 E3D7 5850 957E FED0  2B3A ED66 6971 B524 687C
Alternate Fingerprint: 09F9 1102 9D74  E35B D841 56C5 6356 88C0
Alternate Fingerprint: 455F E104 22CA  29C4 933F 9505 2B79 2AB2
New That gives me a "sharing violation"
________________
oop.ismad.com
New Re: That gives me a "sharing violation"
Try this instead:

blahdeblah > out.txt &2>1

Redirects stderr into stdout.
New Maybe look at "Partition Logic". It's GPL.
[link|http://partitionlogic.org.uk/index.html|Partition Logic]:

Partition Logic is a free hard disk partitioning and data management tool. It can create, delete, format, defragment, resize, and move partitions and modify their attributes. It can copy entire hard disks from one to another.

Partition Logic is free software, based on the Visopsys operating system. It boots from a CD or floppy disk and runs as a standalone system, independent of your regular operating system. It is intended to become a free alternative to such commercial programs as Partition Magic, Drive Image, and Norton Ghost... (read more)


I haven't used it myself. Caveat Emptor, YMMV, IANAL, Void Where Prohibited, etc., etc.

That would be useful for a one-time copy. It sounds like you want something else.

What worries me, though, is your initial statement: Whenever I try to copy a harddrive or large folder, it often *stops* the whole copy when it encounters a security-related issue, such as "access denied".

If it's stopping on a folder (that presumably doesn't have locked System files present), then something seems amiss. I would find such a folder and try to figure out what's going on.

Were you ever a fan of Norton Commander? If so, you might look at [link|http://silk.apana.org.au/fc.html|File Commander] (the latest beta is [link|http://silk.apana.org.au/pub/fcw/fcw230-dev.zip|here] - get the official version for the help files, etc.). F5 copies marked files/directories/etc. and it will show progress. It'll tell you which file gives an Access Denied. FC is shareware, but it has very little nagging (I'm just a customer).

HTH a bit.

Cheers,
Scott.
New Hmmmm. Interesting. Thanks
If it's stopping on a folder (that presumably doesn't have locked System files present), then something seems amiss. I would find such a folder and try to figure out what's going on.


Well, it is mostly the data I'm interested in, not system files. But MS tends to mix them up, especially in the user profiles.
________________
oop.ismad.com
New xcopy filename dest >logfilename 2>&1
Make sure you're using cmd.exe and not command.com

Redirection must be defined in that order or stderr (2) will still write to console.

See [link|http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/redirection.mspx?mfr=true|TFM] for more.

PS: Yes, like Unix.

obWindozeSux for CRC.
--
Chris Altmann
New :-)
New I'd have suggested that...
Except I'd never done it on Windows... never thought it'd work.
--
[link|mailto:greg@gregfolkert.net|greg],
[link|http://www.iwethey.org/ed_curry|REMEMBER ED CURRY!] @ iwethey
PGP key: 1024D/B524687C 2003-08-05
Fingerprint: E1D3 E3D7 5850 957E FED0  2B3A ED66 6971 B524 687C
Alternate Fingerprint: 09F9 1102 9D74  E35B D841 56C5 6356 88C0
Alternate Fingerprint: 455F E104 22CA  29C4 933F 9505 2B79 2AB2
New Not so sure about Windows, but it works a treat on Warp.
New XCOPY fundimentally flawed?
It appears that entire sub-folders are skipped if one bad file is found in a folder. It doesn't just skip the bad file, but writes off the entire folder (if not already copied before error). Something is rotten...
________________
oop.ismad.com
New Probably not xcopy, but the Windows 'attitude' top copying.
You've undoubtedly already encountered it whilst using Explorer to copy files. One error and *bam!* everything stops.

That said, the [link|http://en.wikipedia.org/wiki/Xcopy|Wikipedia page on XCopy] suggests using [link|http://en.wikipedia.org/wiki/Robocopy|Robocopy]. It's in the Windows 2003 Resource Kit, downloadable [link|http://www.microsoft.com/downloads/details.aspx?familyid=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en|here].

Wade.


Is it enough to love
Is it enough to breathe
Somebody rip my heart out
And leave me here to bleed
 
Is it enough to die
Somebody save my life
I'd rather be Anything but Ordinary
Please



-- "Anything but Ordinary" by Avril Lavigne.

· my ·
· [link|http://staticsan.livejournal.com/|blog] ·
· [link|http://yceran.org/|website] ·

New Interesting idea. Thanks
________________
oop.ismad.com
     Copy harddrive without "access denied" stops? - (tablizer) - (18)
         Check the Xcopy switches. - (Another Scott) - (17)
             I see a "/c" option, but no logging what's skipped... - (tablizer) - (16)
                 Yes, /c is it. - (Andrew Grygus) - (15)
                     Does "> log" at end of command line not work? -NT - (a6l6e6x) - (14)
                         Well, yes, actually it does . . . - (Andrew Grygus) - (13)
                             Arrrg, errors are not redirected - (tablizer) - (12)
                                 Try redirecting to the same file. - (folkert) - (2)
                                     That gives me a "sharing violation" -NT - (tablizer) - (1)
                                         Re: That gives me a "sharing violation" - (jake123)
                                 Maybe look at "Partition Logic". It's GPL. - (Another Scott) - (1)
                                     Hmmmm. Interesting. Thanks - (tablizer)
                                 xcopy filename dest >logfilename 2>&1 - (altmann) - (3)
                                     :-) -NT - (Another Scott)
                                     I'd have suggested that... - (folkert) - (1)
                                         Not so sure about Windows, but it works a treat on Warp. -NT - (jake123)
                                 XCOPY fundimentally flawed? - (tablizer) - (2)
                                     Probably not xcopy, but the Windows 'attitude' top copying. - (static) - (1)
                                         Interesting idea. Thanks -NT - (tablizer)

*SHUN*
98 ms