Post #287,228
6/18/07 2:25:54 PM
|
Does "> log" at end of command line not work?
Alex
When fascism comes to America, it'll be wrapped in a flag and carrying a cross. -- Sinclair Lewis
|
Post #287,230
6/18/07 2:33:23 PM
|
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]
|
Post #287,261
6/18/07 7:55:05 PM
6/18/07 8:03:18 PM
|
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
Edited by tablizer
June 18, 2007, 08:03:18 PM EDT
|
Post #287,263
6/18/07 8:26:21 PM
|
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
|
Post #287,307
6/19/07 11:12:49 AM
|
That gives me a "sharing violation"
________________ oop.ismad.com
|
Post #287,388
6/20/07 8:36:17 AM
|
Re: That gives me a "sharing violation"
Try this instead:
blahdeblah > out.txt &2>1
Redirects stderr into stdout.
|
Post #287,264
6/18/07 8:30:56 PM
|
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.
|
Post #287,311
6/19/07 11:16:48 AM
|
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
|
Post #287,277
6/19/07 12:28:53 AM
|
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
|
Post #287,286
6/19/07 8:05:22 AM
|
:-)
|
Post #287,293
6/19/07 9:46:43 AM
|
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
|
Post #287,458
6/20/07 10:03:03 PM
|
Not so sure about Windows, but it works a treat on Warp.
|
Post #287,315
6/19/07 12:51:42 PM
|
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
|
Post #287,359
6/19/07 9:16:02 PM
|
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] · |
|
Post #287,453
6/20/07 7:41:51 PM
|
Interesting idea. Thanks
________________ oop.ismad.com
|