Skip to content

Instantly share code, notes, and snippets.

@Shilo
Forked from ozh/gist:4131243
Created January 4, 2018 05:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Shilo/b3f581ef937dfc22466ca579176492d2 to your computer and use it in GitHub Desktop.
Save Shilo/b3f581ef937dfc22466ca579176492d2 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment