Tutorial by Examples

From this website, the OP has noticed a problem. Cause Consider the following code snippet. if 1==1 ( set /a result = 2*(3+4) ) At your first glance, you may think CMD.exe would process it like so: The condition is true, execute code block Set variable result's value to 14 Continu...
In this Stack Overflow question, user txtechhelp found an issue with the ^ character which could cause a security issue. Cause anyInvaildCommand ^ Note: Make sure the caret(^) is the last character! Any extra CR\LF won't work at all! The caret looks for the next character to escape. However,...
This bug was reported by steve2916 from this Microsoft Windows Forum thread. Cause Consider a folder with such files. TestA.doc TestB.doc TestC.docx TestD.docx If we want to remove all .doc file in this directory, we usually would do: del *.doc However, this command also removes the ....

Page 1 of 1