Skip to content

Instantly share code, notes, and snippets.

@hatamiarash7
Created January 6, 2018 22:34
Show Gist options
  • Save hatamiarash7/4cb102e30472f5a51f1653ebc711cf01 to your computer and use it in GitHub Desktop.
Save hatamiarash7/4cb102e30472f5a51f1653ebc711cf01 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