Skip to content

Instantly share code, notes, and snippets.

@stephenpatten
Forked from ozh/gist:4131243
Created November 4, 2019 18:33
Show Gist options
  • Save stephenpatten/a126393bf67d71baf26881196d971ddb to your computer and use it in GitHub Desktop.
Save stephenpatten/a126393bf67d71baf26881196d971ddb 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