To underscore or not to underscore?
December 21, 2006 4:05 PM
Subscribe
Is there an advantage to having an underscore in a file name?
I'm devising a naming standard for some time tracking worksheets at work. For some reason, many years ago I started to put underscores in file names containing dates, like this:
20061223_pdb weeklytimesheet.xls
20061223_tjd weeklytimesheet.xls
instead of just naming them like this:
20061223pdb weeklytimesheet.xls
20061223tjd weeklytimesheet.xls
the belief being that the underscore will allow for more accurate sorting (and easier finding) of the files in Windows Explorer. I don't know where I got the underscore-is-better notion, but I've done it forever; a coworker challenged me on it today, and I had no concrete reason why it would be better.
Is there an actual reason why adding an underscore is better, or is it just a stylistic habit I acquired?
posted by pdb to computers & internet (23 comments total)
3 users marked this as a favorite
Note that batch files will need extra quoting of file arguments if there are spaces in them.
posted by cschneid at 4:09 PM on December 21, 2006