[Tips] How To Hide .ds_Store Files In Windows? - Information - Hackintosh Zone Jump to content
Deepak

[Tips] How To Hide .ds_Store Files In Windows?

Recommended Posts

OSX like other Unix systems creates a number of metadata files for things like fast indexing.The first character of these files and folders is always a period ie ".DS_Store" or "._MyDoc.doc" and from this file naming convention OSX from the knows to hide these files so they don't clutter up Finder.
However Windows doesn't automatically hide these files and they are created whenever OSX browses a Windows drive with read permissions ie. through a networked drive with samba or using Macfuse with ntfs3g.
You can tell OSX not to create these files but they are created for a reason and I would prefer to have them on my OSX drive. This tutorial will show you how to quickly and simply add an extra layer of invisibility to these files in Windows so that they will not show unless you check the "Hide protected operating system files" option in Explorer, an option I am content to leave on unless needed.
 
1. Create a new text document anywhere. Rename it to something suitable like "Hide DS_Store Files.bat" any name is fine as long as you change the extension from .txt to .bat If you get a prompt about changing thfile extension choose 'yes' to rename it.
2. Right click on the file and select "Edit"

3. Paste the following code into the text editor, save and exit. If your windows installation is on a drive other than C: then replace C: with the appropriate drive name.

Attrib +h +s C:*.DS_Store /s   Exit

If you have multiple drives you would like to hide files on then create an entry for each. Likewise, if there are other filetypes you would like to hide, add entries for each:

Attrib +h +s C:*.DS_Store /s Attrib +h +s D:*.DS_Store /s Attrib +h +s C:*._* /s Attrib +h +s D:*._* /s   Exit

(WARNING* if you do something silly like "Attrib +h +s C:*.* /s" don't complain to me when all of your files disappear *WARNING)
 
4. Double click on the .bat file to run the script, a command window will pop up. It might look like it isn't doing anything or has crashed, but don't worry. The script is searching every file on your C: drive for .DS_Store files to hide, this can take a long time.
5. New .DS_Store files might be created from time to time that won't be hidden any more. When this happens, just run the script again. 

If you messed up and need to see the files you hid, in the Explorer menu bar, go to Tools - > Folder Options... in the box that pops up, click on the "View" tab and under the "Advanced Options" menu make sure the box next to "Hide protected operating system files(recommended)" is unchecked.


So what did we do?
"attrib" runs the DOS program attrib.exe which is used for changing file and folder attributes much in the same way that file permissions work in OSX.

This batch script tags all the .DS_Store files on the designated drive(s) with the Hidden "+h" and System "+s" attributes. This categorizes them as superhidden files and they will not show up in explorer or searches like regulahidden files and folders that have the "+h" attribute but are missing "+s".

* acts as a wildcard so "C:*._*" will work on "C:._MyDoc.doc" "C:._YourDoc.doc" "C:DoNotHide._" "C:DoNotHide._MyDoc.doc" etc...
 
the "/s" command at the end tells the script to perform the attribute change on all the subfolders in C: so it will look in "C:", "C:Windows", "C:My Documents", "C:Program Files", etc. and all the folders in those folders. In effect, it checks every single file and folder on the C: drive. 
 
Another Method :::::
 
 
I create a batch file that hide all mac cache files , in windows drives.( attached file.)

Attrib +h +s *.DS_Store /sAttrib +h +s ._.* /sAttrib +h +s *.fuse* /sAttrib +h +s *.donotpresent /sAttrib +h +s *.fseventsd /sAttrib +h +s .fseventsdAttrib +h +s .TrashesAttrib +h +s .TemporaryItemsAttrib +h +s *.TemporaryItems /s

if you wana do manually, create a text file, copy this commands, paste into the text file.
save as " HideExtensions.bat " .
run this batch file in every hard disk drive partitions.

for example, copy this file in c: partition , and run it for hide files on drive c:
for partition d: , run it on this partition , and for all partitions.

 
GOOG LUCK !!!!!
 
Best Regards
Deepak

Hide_Mac_Files.zip

  • Like 7

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Donation Goals

    Hosting February 2018

    Please donate to support the community.
    We appreciate all donations!



    $48.99 of $120.00 goal reached.
    Donate Now
  • Download Hackintosh

  • Files

  • Posts

    • hello all, i wonder if somebody did sucssesfuly installed ati drivers on one of polaris gpu on 10.9 10.10. or 10.11 mac? i find yesterday on some russian forum that they did some bios mods on polaris gpus on siera and high siera but i dont understand process. also no luck for kext emulator on phenom 2 cpu for siera and high siera i got rx560 sapphire 2gb and i tryed install mac but on gpu it said 8mb and graphic is awfull. everithing else works exept spdif output for audio and gpu. i cannot install siera or high siera because of unsupported cpu sse4.1 or sse4.2 my specs are asus m5a97 r2 evo phenom II 955 black edition x4 @3.2 g stock ram 3x4gb ddr3 @ 1333 underclocked because of cpu limitations rx560 sapphire 2gb 60gb adata sp900 2x500 gb wd blue (1x 2.5" , 1x 3.5") all your comments are welcome thanks
    • guys please help me .....................im stucked at apple logo while installing im using hp laptop core i5 7200u 6gb ram amd radeon R5 M430
    • I have working audio, graphics and network on this 10.13  Now store has sent me "security update" which I believe is 10.13.3.  Has anyone done this via store? What do I need to do before I install it? I have issues loading EFI so have to always manually mount it (Clover configurator and EFI mounter both fail) but using terminal and command "open /efi" I am able to mount and make changes to my config.plist too.   
    • Hi guys, I try to install Mac OS X Yosemite on my computer, but... i get stuck at the logo (when i boot it) + i see a bar, who won't charge. Can you give me a solution?   Processor: Intel(R) Pentium(R) Dual  CPU  E2180  @ 2.00GHz (2 CPUs), ~2.0GHz Memory: 2048MB RAM    User DPI Setting: Using System DPI  System DPI Setting: 96 DPI (100 percent) Display Card name: NVIDIA GeForce 210  Manufacturer: NVIDIA Chip type: GeForce 210 DAC type: Integrated RAMDAC  
    • Just to Add I used My windows machine with TransMac to wipe and build the install (including USB). I only used the clover installer I forgot that it could switch to chameleon.
  • Download Statistics

    • Files
      848
    • Comments
      2,137
    • Reviews
      2,570

    Latest File
    By Vale1831

    13    0

×