Click here to Skip to main content
15,849,996 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: Possibly the hottest mess I've seen in some time Pin
Mike Hankey3-Apr-23 1:31
mveMike Hankey3-Apr-23 1:31 
GeneralRe: Possibly the hottest mess I've seen in some time Pin
honey the codewitch3-Apr-23 8:40
mvahoney the codewitch3-Apr-23 8:40 
GeneralRe: Possibly the hottest mess I've seen in some time Pin
Mike Hankey3-Apr-23 9:05
mveMike Hankey3-Apr-23 9:05 
GeneralRe: Possibly the hottest mess I've seen in some time Pin
Mircea Neacsu11-Apr-23 13:15
Mircea Neacsu11-Apr-23 13:15 
GeneralRe: Possibly the hottest mess I've seen in some time Pin
Mike Hankey11-Apr-23 13:35
mveMike Hankey11-Apr-23 13:35 
GeneralRe: Possibly the hottest mess I've seen in some time Pin
DrWalter PE26-Apr-23 13:46
professionalDrWalter PE26-Apr-23 13:46 
GeneralRe: Possibly the hottest mess I've seen in some time Pin
Mike Hankey26-Apr-23 13:57
mveMike Hankey26-Apr-23 13:57 
GeneralI question Microsoft's documentation Pin
PIEBALDconsult31-Mar-23 6:13
mvePIEBALDconsult31-Mar-23 6:13 
Microsoft wrote:

You can use wildcard characters (* or ?), to represent one or more characters of a file name and to display a subset of files or subdirectories.

The asterisk wildcard always uses short file name mapping, so you might get unexpected results.

You can use the question mark (?) as a substitute for a single character in a name.

-- dir | Microsoft Learn[^]

The question mark does not actually substitute for a dot/period/full stop (.) in a file name.

C:\Users\PIEBALD\AppData\Roaming>copy con foo_bar.txt
^Z
        1 file(s) copied.

C:\Users\PIEBALD\AppData\Roaming>copy con foo.bar.txt
^Z
        1 file(s) copied.

C:\Users\PIEBALD\AppData\Roaming>dir foo*bar.txt
 Volume in drive C is Windows8_OS
 Volume Serial Number is 528E-277C

 Directory of C:\Users\PIEBALD\AppData\Roaming

2023-03-31  08:06                 0 foo.bar.txt
2023-03-31  08:06                 0 foo_bar.txt
               2 File(s)              0 bytes
               0 Dir(s)  28,516,610,048 bytes free

C:\Users\PIEBALD\AppData\Roaming>dir foo?bar.txt
 Volume in drive C is Windows8_OS
 Volume Serial Number is 528E-277C

 Directory of C:\Users\PIEBALD\AppData\Roaming

2023-03-31  08:06                 0 foo_bar.txt
               1 File(s)              0 bytes
               0 Dir(s)  28,516,675,584 bytes free

C:\Users\PIEBALD\AppData\Roaming>del foo*bar.txt

C:\Users\PIEBALD\AppData\Roaming>


As a further note, I have 8dot3 naming turned off on my personal system and I'll have to try this there.

Tested on Win10 as well as this old Win8 junker.
GeneralRe: I question Microsoft's documentation Pin
RainHat3-Apr-23 5:06
RainHat3-Apr-23 5:06 
GeneralRe: I question Microsoft's documentation Pin
PIEBALDconsult3-Apr-23 5:42
mvePIEBALDconsult3-Apr-23 5:42 
GeneralRe: I question Microsoft's documentation Pin
Gary R. Wheeler28-Apr-23 12:45
Gary R. Wheeler28-Apr-23 12:45 
GeneralGDMA on the ESP32S3 Pin
honey the codewitch18-Mar-23 9:29
mvahoney the codewitch18-Mar-23 9:29 
GeneralRe: GDMA on the ESP32S3 Pin
raddevus18-Mar-23 13:45
mvaraddevus18-Mar-23 13:45 
GeneralRe: GDMA on the ESP32S3 Pin
honey the codewitch18-Mar-23 13:52
mvahoney the codewitch18-Mar-23 13:52 
GeneralRe: GDMA on the ESP32S3 Pin
raddevus18-Mar-23 13:59
mvaraddevus18-Mar-23 13:59 
GeneralRe: GDMA on the ESP32S3 Pin
honey the codewitch18-Mar-23 14:31
mvahoney the codewitch18-Mar-23 14:31 
GeneralI must be doing something wrong... Pin
PIEBALDconsult17-Mar-23 14:47
mvePIEBALDconsult17-Mar-23 14:47 
GeneralRe: I must be doing something wrong... Pin
0x01AA17-Mar-23 15:31
mve0x01AA17-Mar-23 15:31 
GeneralRe: I must be doing something wrong... Pin
trønderen17-Mar-23 15:57
trønderen17-Mar-23 15:57 
GeneralRe: I must be doing something wrong... Pin
PIEBALDconsult17-Mar-23 17:05
mvePIEBALDconsult17-Mar-23 17:05 
GeneralRe: I must be doing something wrong... Pin
trønderen17-Mar-23 18:17
trønderen17-Mar-23 18:17 
GeneralRe: I must be doing something wrong... Pin
PIEBALDconsult18-Mar-23 7:15
mvePIEBALDconsult18-Mar-23 7:15 
GeneralRe: I must be doing something wrong... Pin
GuyThiebaut19-Mar-23 23:02
professionalGuyThiebaut19-Mar-23 23:02 
GeneralRe: I must be doing something wrong... Pin
Daniel Pfeffer20-Mar-23 0:07
professionalDaniel Pfeffer20-Mar-23 0:07 
GeneralRe: I must be doing something wrong... Pin
PIEBALDconsult20-Mar-23 3:50
mvePIEBALDconsult20-Mar-23 3:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.