VOGONS


First post, by skatz

User metadata
Rank Member
Rank
Member

I use DOSBox 0.72 win32 build.
I know that for now DOSBox does not support attributes.

I created simple test file by 'echo>text.txt'
When a look at this file with some utility that can show attributes (DOS Navigator or FreeDOS 4dos interpreter) i see that this file has attributes:
- file created on host folder mounted as drive has 'archived' attribute
- file created on mounted drive image (hard or floppy) has 'hidden' attribute
And no way to clear this hidden.
Of course, when I boot real dos - all works as expected.

An another problem with HD image:
I run doszip file commader(http://sourceforge.net/projects/doszip). As I understand, it is dos application written in BC3.1 When I copy file into mounted folder - all works fine, but when into mounted image - DOSBox crashes.

Reply 2 of 11, by skatz

User metadata
Rank Member
Rank
Member

Sorry, what is bad? DOSBox behaviour, file or flag?

Reply 3 of 11, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

File attribute handling is not implemented as on non-dos/win-systems you don't have them.

Reply 4 of 11, by skatz

User metadata
Rank Member
Rank
Member

wd, I know that. But why it writes this 'hidden' attribute in situation where it shouldn't?

Reply 5 of 11, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Ah ok i see, no idea 😀
Be sure to check how it works in the cvs (start with an empty image disk)
as some image-disk related bugs are fixed there. None flags-related though iirc.

Reply 6 of 11, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

From my memory a file modified on an image with norton commander won't have any attributes set.

1+1=10

Reply 7 of 11, by skatz

User metadata
Rank Member
Rank
Member

I have not Norton Commander at hand, but I tried NDN (Necromancer's DOS Navigator) and VC (Volcov Commander) and FreeDOS utilies.
Editing file does not changes attributes. And more - it does not change filetime, so modification time is always reported as 0.0.1980!
It seems that name cannot be changed too - 'REN' command silently do nothing.

Reply 8 of 11, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Yes and as already noted a few times you are not supposed to run stuff on
an image disk, it's just to enable quick file copying to hd images.

Reply 9 of 11, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Does it happen with files that you copy (non-booted dosbox) as well or is it just echo/new file creation?

Reply 10 of 11, by skatz

User metadata
Rank Member
Rank
Member

No, copied files have no attributes. Problem appears only with files created by redirection.

Reply 11 of 11, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

There's a bug in the redirection code, but it only affects imgmounted fat drives.