Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: MS-DOS file copy help required

31 Oct 2018   #1
golem

Windows 7 Ultimate 64
 
 
MS-DOS file copy help required

To the point --

Is it possible when using Xcopy to designate it use "date created" as opposed to the assumed default of "date modified" when creating a copy script?

The verbose query --

I'm attempting to help a friend recover files from a failing drive. Explorer "copy" will not work as it continually stalls on corrupt files. I then attempted to use Robocopy (Robocopy "H:\Users\Anita\My Pictures" "W:\anita" /E /XA:SH /XD AppData /XJD /R:2 /W:2 /MT:32 /V /NP /LOG+:W:anita.log) but couldn't get it to ignore corrupt files. Xcopy (Xcopy "H:\Users\Anita\Pictures" "W:\anita" /c /i /j /q /s /y) worked well but unfortunately after 18 hours I had to terminate the session with 400GB of the 600GB recovered.

Using Xcopy the file folders were copied in order based on default name alphabetic. Luckily this corresponds to the associated "date created" as they're digital camera folders. Since I am unable to delete via explorer the already transferred folders due to persistent errors I'm hoping there's a way to designate an Xcopy date switch to use "date created" for the purpose of targeting only the folders not yet transferred. It looks like Xcopy defaults to "date modified".

In lieu of the above -- Maybe there's a better way to delete the already transferred files from the failed drive? Is there possibly a better way to configure Robocopy that can help me complete the task.

Any suggestions appreciated.


My System SpecsSystem Spec
.
31 Oct 2018   #2
samuria

win 8 32 bit
 
 

The only way is first run a full disk check which will sort out corrupted files if they are far gone you will loose them but it's the only option. Then use robocopy mirror CMD which will mirror the folder it won't copy files that have been copied so it will be very fast
My System SpecsSystem Spec
31 Oct 2018   #3
golem

Windows 7 Ultimate 64
 
 

Thanks for the reply samuria.

With the HDD installed I had them attempt a repair disk scan of the drive and it ran for well in excess of 24 hours. After I got the HDD I used both Disk Admin to run a scan with error fix and also attempted Command Prompt chkdsk with fix but all failed to complete a run. In the end I was satisfied to see Xcopy was working, simply was just unfortunate I had to voluntarily halt the process it as I required use of my computer (alternate bootable partition) for other purposes.

I was hoping to mirror using Xcopy but it looks like that isn't an option. Now, if I go with Robocopy (which offers mirror) is there a way to make it ignore problem files? Even with the /W:2 /R:2 switches Robocopy still stalled for what seemed indefinitely on corrupt files (those files that Xcopy only hesitated shortly on).
My System SpecsSystem Spec
.

31 Oct 2018   #4
golem

Windows 7 Ultimate 64
 
 

Quick update --

After letting explorer attempt for over 5 hours to break into the parent folder (felt like hammering an FTP ;-)) it finally listed the contained folders. Another hour or so later I was finally able to complete deletion of the already transferred folders and their contents. This left me with only the folders still requiring transfer so I employed Xcopy again and it's humming (well, limping) along and should be completed by morning.

If I wake to nirvana I'll be sure to mark solved.
My System SpecsSystem Spec
Reply

 MS-DOS file copy help required




Thread Tools




Similar help and support threads
Thread Forum
Batch file required
Hi all... Please help if you can. I need a batch file to search inside over 100 rar and zip files and move them to a folder according to a year of a file inside.Here is what I tried last.....didn't work.... @ echo off md 2016files echo IN PROGRESS PLEASE WAIT for %%F in...
General Discussion
Batch file required
Hi guys... Windows 7 Ultimate 32 bit is my OS. Please help....thanks! I need a batch file that is run once from inside the same folder called Config as an "options.cfg" file,part of the text is listed below.I need to change the unknown number that follows the "draw_distance" to the number shown...
General Discussion
Batch File .bat to copy file from File Sharing & FTP Hosting
Hi all, Any idea how to write Batch File .bat to copy file from File Sharing & FTP Hosting to local directory. Current the File Sharing & FTP Hosting is SMARTFILE. I don't want to use WINSCP as the connector. Thanks
General Discussion
Windows cannot copy files required for installation. Error 0x80070070
Hey guys, im trying to do this (i have windows 7 installed first) but when installing vista, at just 2% i get this Windows cannot copy files error. Im installing from a bootable USB and i've already tried using a different 4gb usb, a different vista iso file, different programs to make my usb...
Installation & Setup
how do I copy a BIG single file (using richcopy?) big file copy
I'm trying to copy a VHD (22g, dynamic I think...) I tried richcopy. It says copy started, but then stops.... I saw someone mention xcopy /j, to achieve the unbuffered I/O perf. you get with richcopy... it's running, but no indication as to how long it takes (EDIT: just finished, > 10...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 01:59.
Twitter Facebook