'Weird' File Name Rule

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Meerkat
Posts: 89
Joined: 19 Jul 2015 02:27
Location: Philippines

'Weird' File Name Rule

#1 Post by Meerkat » 27 Jul 2015 09:44

Maybe out of Batch Scripting, but why is that the question mark char (?) and colon (:) are not allowed to be included in a filename?

I know that other symbols not allowed are used in Batch (e.g. > is for redirection)...

Meerkat :D

npocmaka_
Posts: 517
Joined: 24 Jun 2013 17:10
Location: Bulgaria
Contact:

Re: 'Weird' File Name Rule

#2 Post by npocmaka_ » 27 Jul 2015 10:57

'?' is a wildcard (any single appearing symbol).As well as '*' . Have on mind that > and < are also wildcards.
':' indicates a drive and can be in a full file name only once (with the exception for the alternate data streams).

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: 'Weird' File Name Rule

#3 Post by foxidrive » 27 Jul 2015 20:43

npocmaka_ wrote:Have on mind that > and < are also wildcards.


They work as wildcards here and there, but they aren't officially recognised wildcards, true?

Meerkat
Posts: 89
Joined: 19 Jul 2015 02:27
Location: Philippines

Re: 'Weird' File Name Rule

#4 Post by Meerkat » 28 Jul 2015 00:25

viewtopic.php?f=3&t=6207

Yeah, I know now. Thanks again!

Meerkat

Post Reply