Commenting multiple lines in DOS batch file

前端 未结 7 2117
温柔的废话
温柔的废话 2020-12-04 08:18

I have written huge MS DOS Batch file. To test this batch file I need to execute some lines only and want to hide/comment out remaining.

I have some existing comment

7条回答
  •  孤街浪徒
    2020-12-04 08:51

    If you want to add REM at the beginning of each line instead of using GOTO, you can use Notepad++ to do this easily following these steps:

    1. Select the block of lines
    2. hit Ctrl-Q

    Repeat steps to uncomment

提交回复
热议问题