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
  • 79
  • 2
  • 5

2 Answers2

1
mkdir \\?\c:\test2.  

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

jasinth premkumar
  • 1,430
  • 1
  • 12
  • 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
  • 35,554
  • 7
  • 89
  • 134