comment on the same line in a Batch file

G

Guest

Guest
Archived from groups: microsoft.public.windowsxp.general (More info?)

Hello, All!
:: or rem can be given to treat a complete line as comment. How to place a
comment on the same line of a valid command?

With best regards, Brother Brock. E-mail: Nobodyknows@unknown.com
My System P3,256mb Ram, 20gb HDD, WinXP Pro SP2, NAV, Kerio.
 
Archived from groups: microsoft.public.windowsxp.general (More info?)

Just type rem before the valid command in the batch file.

--


The best live web video on the internet http://www.seedsv.com/webdemo.htm
NEW Embedded system W/Linux. We now sell DVR cards.
See it all at http://www.seedsv.com/products.htm
Sharpvision simply the best http://www.seedsv.com



"Brother Brock" <Nobodyknows@unknown.com> wrote in message
news:eP2D7zLsFHA.3788@TK2MSFTNGP12.phx.gbl...
> Hello, All!
> :: or rem can be given to treat a complete line as comment. How to place a
> comment on the same line of a valid command?
>
> With best regards, Brother Brock. E-mail: Nobodyknows@unknown.com
> My System P3,256mb Ram, 20gb HDD, WinXP Pro SP2, NAV, Kerio.
>
>
 
Archived from groups: microsoft.public.windowsxp.general (More info?)

You can't.

Matt Gibson - GSEC

"Brother Brock" <Nobodyknows@unknown.com> wrote in message
news:eP2D7zLsFHA.3788@TK2MSFTNGP12.phx.gbl...
> Hello, All!
> :: or rem can be given to treat a complete line as comment. How to place a
> comment on the same line of a valid command?
>
> With best regards, Brother Brock. E-mail: Nobodyknows@unknown.com
> My System P3,256mb Ram, 20gb HDD, WinXP Pro SP2, NAV, Kerio.
>
>
 
Archived from groups: microsoft.public.windowsxp.general (More info?)

If you rem out a line with a command, the command will not run.

Place the comment on another line.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In news:eP2D7zLsFHA.3788@TK2MSFTNGP12.phx.gbl,
Brother Brock <Nobodyknows@unknown.com> hunted and pecked:
> Hello, All!
>>> or rem can be given to treat a complete line as comment. How to place a
> comment on the same line of a valid command?
>
> With best regards, Brother Brock. E-mail: Nobodyknows@unknown.com
> My System P3,256mb Ram, 20gb HDD, WinXP Pro SP2, NAV, Kerio.
 
Archived from groups: microsoft.public.windowsxp.general (More info?)

On Sat, 03 Sep 2005 19:48:21 GMT, "pcbutts1" <pcbutts1@seedsv.com> wrote:

>> :: or rem can be given to treat a complete line as comment. How to place a
>> comment on the same line of a valid command?

>Just type rem before the valid command in the batch file.

I think, you mean "a line before": if to type REM at the beginning of the line
with any command -- that will deactivate this line.
---
And for Brother Brock:

In WinXP you can use ampersand sign to combine the command lines:

dir c: &REM <put your comments here>

--
Mikhail Zhilin
MS MVP (Windows - Shell/User)
http://www.aha.ru/~mwz
Sorry, no technical support by e-mail.
Please reply to the newsgroups only.
======
 
Archived from groups: microsoft.public.windowsxp.general (More info?)

Oooh.

Neat trick.

I sit corrected.

Matt Gibson - GSEC

"Mikhail Zhilin" <mwz@x.REMOVEx.aha.ru> wrote in message
news:km1kh1pteq950jljkaop2hhrqmlrk2hdih@4ax.com...
> On Sat, 03 Sep 2005 19:48:21 GMT, "pcbutts1" <pcbutts1@seedsv.com> wrote:
>
>>> :: or rem can be given to treat a complete line as comment. How to place
>>> a
>>> comment on the same line of a valid command?
>
>>Just type rem before the valid command in the batch file.
>
> I think, you mean "a line before": if to type REM at the beginning of the
> line
> with any command -- that will deactivate this line.
> ---
> And for Brother Brock:
>
> In WinXP you can use ampersand sign to combine the command lines:
>
> dir c: &REM <put your comments here>
>
> --
> Mikhail Zhilin
> MS MVP (Windows - Shell/User)
> http://www.aha.ru/~mwz
> Sorry, no technical support by e-mail.
> Please reply to the newsgroups only.
> ======