1

I wanna create a file that file name end with a dot in Windows.

use "mkdir a.", but i only create a folder named with "a"

And I just wonder how to write a function to create such directory, thanks

Subfire
  • 39
  • 1
  • 4

2 Answers2

1
mkdir \\?\c:\test2.  

this creates a folder ending with (.) provide drive letter

jasinth premkumar
  • 1,406
  • 1
  • 11
  • 22
0

Use an extra dot and a trailing backslash:

mkdir a..\

But I highly recommend not to do so. You'll mess the directories up instantly.

iBug
  • 32,728
  • 7
  • 79
  • 117