Any suggestion for improvement?

Moderator: DosItHelp
Code: Select all
if "%colnumber%" == "1" goto color0a
ShadowThief wrote:I don't know if I'd say lots of bad practices, but there is a significant amount of redundant code.
Also, this is just personal preference, but there's never any reason to ever use mode 1000 IMO, especially if none of the commands need that much horizontal space. Also personal preference, spaces don't belong in file names. I know they work fine, but they mean that I have to put paths in quotes when I call files and I'm too lazy to hit " twice.
Choice would be better to use than set /p for user input, or at least include a default case where the user enters something you didn't expect. Also, use quotes on both sides of an if statement in case the user enters nothing.Code: Select all
if "%colnumber%" == "1" goto color0a
I appreciate that you've planned for a scenario where you want some diagnostics to get redirected to a text file and other diagnostics to simply be displayed on the screen, even though I can't imagine this ever happening in real life.
If you put a cls immediately after :choices instead of using cls & goto :choices, you could significantly shrink the file size.
Finally, obligatory "comment your code" comment.
I've written my own version that I think you might find interesting.
goodorbadash wrote:EDIT: Also I can't open it because the zip is password protected.
ShadowThief wrote:goodorbadash wrote:EDIT: Also I can't open it because the zip is password protected.
I have no idea how that happened
Try it now.