Making a folder/dir hidden to Windows through OS X

Discussion in 'macOS' started by gumbyx84, Apr 13, 2010.

  1. gumbyx84 macrumors 6502

    gumbyx84

    Joined:
    Dec 7, 2008
    #1
    Hey all. I'm trying to find an way to hide folders on a FAT32 file system in a Win* environment. Basically, the device I have will not show files and folders/directories in its menus if they are marked as hidden in Windows. I want to find a way to do this in OS X without having to boot in XP all the time. Anyone know how?
     
  2. maflynn Moderator

    maflynn

    Staff Member

    Joined:
    May 3, 2009
    Location:
    Boston
    #2
    The quickest ways is to put a . in front of the name.

    .myfolder

    There's also the invisible file attribute that can be set by the terminal or products like pathfinder.

    As a rule the finder hides invisible files/folders - well duh! and so you cannot change the attribute that you cannot see.
     
  3. gumbyx84 thread starter macrumors 6502

    gumbyx84

    Joined:
    Dec 7, 2008
    #3
    .... As I said, I need to apply the hidden tag/flag from Windows on a file. .files and folders might work, but I cant use . as the files need to have specific names.
     
  4. maflynn Moderator

    maflynn

    Staff Member

    Joined:
    May 3, 2009
    Location:
    Boston
  5. wrldwzrd89 macrumors G5

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #5
    Strangely enough, there's a flag you can set to make a file hidden in Mac OS X (but you can't set or unset it from Finder) - the hidden flag. Windows honors this flag's value, if it finds it set on a file coming from Mac OS X. The command needed in the Terminal is chflags. Its usage is fairly straightforward: to set a flag for a file, you specify the flag name and the file name as arguments, in that order. To clear a flag, prefix no to the flag name.

    An example may help clarify things:
    Code:
    chflags hide ~/Sites/index.html
    This hides the index.html file from the Finder, as well as Open/Save dialogs.
    To clear that flag on the same file:
    Code:
    chflags nohide ~/Sites/index.html
     
  6. gumbyx84 thread starter macrumors 6502

    gumbyx84

    Joined:
    Dec 7, 2008
    #6
    Thanks for the tip wrldwzrd89. I will give it a try later today.
     

Share This Page