What is .DS_Store file in windows

36

6

I found a file with .DS_Store extension in one of my drives. How did it get there?

My Operating System is Windows 7 64-bit and to the best of my knowledge I never accessed an Apple computer nor was accessed by one.

Emad

Posted 2014-05-22T17:38:06.150

Reputation: 533

That same wonder has brought me here, thank you for asking this question! – Callat – 2018-02-19T16:54:07.430

4Chances are you had that drive plugged into an Apple computer or an Apple computer remotely accessed that drive. – kobaltz – 2014-05-22T17:40:35.313

2No. There has been never any connection between my computer and apple computer or any Macintosh OS. – Emad – 2014-05-22T17:42:22.717

5

When you googled it, and read the first result (from Wikipedia), what didn't you understand?

– Ƭᴇcʜιᴇ007 – 2014-05-22T17:45:55.230

7In Wikipedia I found out that this file is related to Mac OS. Since There is Windows Operating System in my machine I got wondered! – Emad – 2014-05-22T17:49:35.370

Answers

52

That file is a proprietary Mac/OSX system file that holds attributes/meta-data about the folder it resides in.

These often appear in file shares that are accessed over the network by a Mac user; but that's not the only way you can get them. You may have gotten it in an archive (ie: a Zip file perhaps) you picked up someplace, which was originally created on a Mac.

I run into these all the time in archives we get from our graphic designers.

You're safe to just delete it.

More info: http://en.wikipedia.org/wiki/.DS_Store

For additional information on preventing them, perhaps check out these SU questions and answers (and others like them):

Ƭᴇcʜιᴇ007

Posted 2014-05-22T17:38:06.150

Reputation: 103 763

If you are using git (or git for Windows) you can add .DS_Store to the .gitignore file so it won't get checked in. – Jesse Chisholm – 2018-05-31T18:14:11.580

Thanx my friend. The problem is that there' no relation between my computer and Mac/OSX and also there's no Zip or compressed file in root of my Drive That I extract it. – Emad – 2014-05-22T18:00:01.827

7That's where they come from, but if you don't know how it got there and you swear nothing has ever been done to put it there, then we can't tell you where you picked it up from, and we probably can't convince you it's harmless. If you are really worried it's an infection or something, then format and reinstall Windows. :) – Ƭᴇcʜιᴇ007 – 2014-05-22T18:04:27.127