Skip to content

Instantly share code, notes, and snippets.

@LeetCodes
Forked from ozh/gist:4131243
Created March 28, 2018 09:50
Show Gist options
  • Save LeetCodes/5e8d7ef42acb18e3383e32417285a9ac to your computer and use it in GitHub Desktop.
Save LeetCodes/5e8d7ef42acb18e3383e32417285a9ac 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