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: executed incorrect script, deleted files. Restore?


18 Jul 2013   #1

Windows 7 Professional 64-bit
 
 
executed incorrect script, deleted files. Restore?

I re-encode my WMC recordings to mkv files and put them in a temp directory to sort them into their individual show folders. I wrote a .cmd script to automatically sort them. Here's an example for the show "Revolution":

Code:
for /f "delims==" %%f in ('dir /b "Q:\TV Temp\*revolution*.mkv"') do MOVE "%%f" "Q:\Revolution\%%nxf"
except I screwed up that last bit. It should be %%~nxf instead of %%nxf. So what happened was it moved the files to the folder, but it renamed each one to "%nxf", effectively deleting all but the last one to be moved. I found out what happened immediately, so I haven't overwritten anything. I had also defragged the drive before any of this happened, so most of the deleted files should be in a single block.

I tried Recuva, but it doesn't recognize mkv file headers, so it can't help. Is there any way to restore these files other than to go through all the empty space on the drive manually and copying blocks using a hex editor? The files themselves are important to restore, but their names also contained info on time, date and channel it was recorded, so it would be nice to have that info back too. Is there a backup of the $MFT that might still contain those names?

This was such a stupid mistake and I'm kicking myself for it, so any advice would be appreciated.

My System SpecsSystem Spec
.

Reply

 executed incorrect script, deleted files. Restore?




Thread Tools



Similar help and support threads for2: executed incorrect script, deleted files. Restore?
Thread Forum
Restore deleted Prefetch? Performance & Maintenance
"The restore point selected was damaged or deleted during the restore" Backup and Restore
looking for cmd script to unhide files System Security
Fix x64 Windows 7 SP1 Incorrect Memory Dump Files News
restore error 0x80070001 incorrect function Backup and Restore
Win 7 restore points deleted by XP Backup and Restore
Thumbcache and restore files are automatically deleted Backup and Restore

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 06:12 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33