These do seem like nice tricks. But such lines will not be clearly visible - thus do only half the job
With the first approach I could start such comment with something standing out like >>█<< sign and thus arriving at something like
Code: Select all
robocopy "%sd%" "%dd%\%folder_name%" /E ^
%==███ MY COMMENT==% ^
/XF "%sd%\desktop.ini"
However apparently I cannot use
to make it more obvious to what it is as it breaks the script- so I will think if I prefer it over making e.g.
as an intro to the line with the actual comment, which [when forced] will be placed over a block consisting of a broken line; because there is also a possibility that signs other than >>:<< in such line can brake the script
As for the second approach, this
Code: Select all
robocopy "%sd%" "%dd%\%folder_name%" /E ^
MY COMMENT
^
/XF "%sd%\desktop.ini"
renders my script half-workihg, because it only creates a backup of the folder structure omitting all of the files