Think I really blew it

General information and assistance with DOSBox.

Think I really blew it

Postby nwsguy » 2017-8-12 @ 22:24

Got a new laptop and wanted to move over a game I have heavily edited. Foolishly went into dosbox and into the games directory where I typed copy *.* and poof. All the file names are still there, but they are empty...30 files and 0 bytes. My computer's backup was disabled (classic) and hope you guys and gals have some ideas to save what has been several years of work and research. Thanks in advance for any assistance you can provide.
Posts: 1
Joined: 2017-8-12 @ 22:17

Re: Think I really blew it

Postby Osprey » 2017-8-12 @ 23:42

I don't think that there's anything that you can do in DOSBox. Operations are pretty final and there are no safety nets. You're probably limited to what you can achieve in your host OS. If it's Windows, the first thing to try is Previous Versions. Right-click on your Games folder, then choose Properties, go to the Previous Versions tab and, if there's a previous version of the games folder listed, select it and choose Restore. As a last resort, there are always disk recovery tools.

BTW, I had to test this because I almost didn't believe that simply doing "copy *.*" would wipe out every file in the directory... and it's true... and it's still unbelievable. Surely this behavior wasn't in MS-DOS. I'm really surprised that this has been overlooked or not addressed in DOSBox after all of this time. Wow, it's even in the latest SVN builds. It seems like Error Handling 101: if the user neglects to include an important parameter, kindly abort and inform him, don't wipe out every file in the directory.
Posts: 246
Joined: 2017-7-27 @ 21:32

Re: Think I really blew it

Postby sndwv » 2017-8-16 @ 16:52

Yikes, that was an accident waiting to happen! Any way to notify the DOSBox devs?

Does anyone know what original DOS behaviour would have been for copy *.*? I just tried in W7 and there it fails with 'The file cannot be copied onto itself' (in a folder with several files). I assume the command means copy everything from the current directory to the working directory (which would be the current one)?
Posts: 192
Joined: 2013-3-11 @ 18:08

Re: Think I really blew it

Postby IIGS_User » 2017-8-19 @ 07:22

Please use your host system (Windows) to copy the stuff over to the new PC.
User avatar
Posts: 895
Joined: 2007-3-14 @ 19:59
Location: native_lang=ger

Return to DOSBox General

Who is online

Users browsing this forum: No registered users and 4 guests