Skip to main content
7 events
when toggle format what by license comment
Feb 4, 2021 at 15:20 comment added RBerman This exact expression fails for me, with "%%I was unexpected at this time" - Windows 10, all current updates.
Jan 10, 2018 at 19:53 history edited FutbolFan CC BY-SA 3.0
Updated the example to set it as code sample.
Jul 20, 2011 at 21:17 comment added Richard and so it is. i can't recall the last time i did bitwise math in a BAT. I was perusing the set /? and it explicitly mentions quotes for that. I've been using parens for years. Don't really feel like cleaning up the files - I think I'll live with it. After all, I have both "if %1!==!" and "if [%1]==[]" formats and I've survived.... :-)
Jul 7, 2011 at 12:48 comment added jeb But parens fails for (set var=&complex^) quotes works set "var=&complex^"
Jul 5, 2011 at 6:54 comment added Richard that might be your standard, but mine is parens... :-)
Jun 29, 2011 at 20:22 comment added jeb Yes it works, but the standard way for SET is to use the quotes like set "NewestFile=%%I"
Jun 29, 2011 at 17:39 history answered Richard CC BY-SA 3.0