Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have created a FAT disk image using Disk Utility and added files to it. I would like to hide some of these files from Windows. Is there a way to do this from OS X?

What I'm looking for is basically a Mac equivalent of attrib: a tool to set the Windows hidden attribute. Note that SetFile will NOT work, as it hides files from OS X, not Windows.

share|improve this question

migrated from stackoverflow.com Aug 13 '09 at 3:34

This question came from our site for professional and enthusiast programmers.

add comment

1 Answer 1

Some 'chmod' implementations allow the changing of MS-DOS permissions.

EDIT: You can use DOSBOX to mount a volume in OS X to a directory, which may allow you to use the attrib command.

EDIT2: The Tcl 'file' command might work from the command-line too.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.