Skip to content

Instantly share code, notes, and snippets.

@ozh
Created November 22, 2012 13:44
Show Gist options
  • Star 62 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
  • Save ozh/4131243 to your computer and use it in GitHub Desktop.
Save ozh/4131243 to your computer and use it in GitHub Desktop.
Create dot files/directories (ie .file) on Windows

#How to create a .file or .folder on Windows

There are several ways

1. Rename

  • Create file.txt
  • Rename to .file., the last dot will be dropped, you'll have .file

Works the same with a file or a directory.

2. Command line

File : echo > .name
Directory : mkdir .foldername

3. With Notepad

  • Create a new text document and edit with Notepad
  • When saving, enter .file as a name and select All files (*.*) as file type
@yingmonster123
Copy link

nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment