comments in a command line file?

Is there a way to place a comment into a *.txt file intended to be used as a CL file

Do you think // will work

Thanks


Answer this question

comments in a command line file?

  • DavidBradsell2

    Great idea, thanks. It was a response file that I meant.

  • scotthunter

    So this is a "response file" for CL compiler.
    Instead, compose the command line or response file in your makefile, like this:

    MYOPTS =
    MYOPTS = $(MYOPTS) /YP
    # this is commented out:
    # MYOPTS = $(MYOPTS) /otheropts

    $(CL) -c $(MYOPTS) somefile

    Regards
    --PA

  • Mark J.

    Hi Alex,
     Could you elaborate more or include more details

    Thanks,
      Ayman Shoukry
      VC++ Team

  • Steven Hahn

    Well, I do not have many details. What I mean is this: I am trying to make a number of command files for CL directive (command) with a number of options included. In a month or so I will not need it but at this moment I keep forgetting some details as to what some options mean, for instance /Yp. What I would like to do is to have comments included in the file similar to "rem" statement of batch files where I would explain for myself what some of the options mean. I would also like to make notes on the nature of the project, etc.

    thanks.

  • comments in a command line file?