VOGONS


First post, by Willie

User metadata

If you've ever experienced the "Warning: file creation failed" error on a Windows machine, here is a tiny, incomplete explanation of why it happens and how you can fix it.

DOSBox complains with this warning when the file is marked as Hidden in "real-life"
DOSBox can see the file just fine and allows access to it, but when "creating"/modifying this Hidden file, it fails and returns a warning.

So, how to fix it? Simply hop out to Windows and edit the attributes of the file (either right click -> Properties) or use ATTRIB -h in a command window.
Unhide the file and you should be set.

As the subject implies, this is what I did to get Supaplex to save my levels/player list. (PLAYER.LST and HALLFAME.LST)

Hope this helps someone. This problem probably doesn't happen with Linux since the attribute of a "hidden" file is to simply start with a period if I'm not mistaken. I imagine that DOSBox would have no troubles with this.

Thanks and good luck everyone!

Reply 2 of 3, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

Added: FAQ

Thanks!

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 3 of 3, by Krzyklo

User metadata
Rank Newbie
Rank
Newbie

In my case, when I encountered this error (File Creation Failed) in Win3.11 application, it helped to first set TEMP parameter in DosBox, before running Win3.11. Below is content of WIN.BAT file, which allow Win3.11 to create TEMP files in C:\

PATH C:\WINDOWS;
SET TEMP=C:\
WINDOWS\WIN.COM

Hopefully, it will help someone.