Is there a way to include the script itself in the batch file?
Not exactly, no. Perhaps you can do what you want with macro's, see the MyDefrag "-m" commandline parameter
. Or perhaps you can do it by creating a temporary MyDefrag script from your batch file, with the ">" and ">>" command redirection operators. The following command will create a file called "t1.txt" containing a line with the text "hello":
echo hello > t1.txt
And this command will append a line with "there" to that file:
echo there >> t1.txt
Things like that are usually done with overlapping comment syntax, but so far as I can tell myd doesn't recognize block-comment openers in single-line comments.
Not sure what you are trying to do, but no, MyDefrag does not see a block-comment opener in a single-line comment.