News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Script isn't working

Started by Magnum, November 02, 2011, 07:27:10 PM

Previous topic - Next topic

Magnum

This is supposed to insert these 2 characters, but it does not work.

I want to use it to insert comments in my batch files.

Comment&9 ::,{e}\text\comment9.txt

In comment9.txt

;::
Have a great day,
                         Andy

dedndave

start the line with double colons - not a semicolon

::comment

this works because...
batch file lines starting with a colon are branch labels
the second colon makes it an invalid branch label - so, when the batch is processed, the line is ignored   :P

Magnum

I am referring to the script capabilities within Qeditor.

Have a great day,
                         Andy

dedndave

Hutch is the man for that one
in the attachment of the following post, he uses semicolons...
http://www.masm32.com/board/index.php?topic=17215.msg144067#msg144067

Tedd

Try the line as:

Comment&9,{e}\text\comment9.txt

and see if that works first.
If not, 'how' does it not work (what does it do?)
No snowflake in an avalanche feels responsible.

Magnum

This is what it puts out. ??

; ::
Have a great day,
                         Andy

Magnum

I tried just :: in comment9, but it does not put it before the text, it makes a newline.

Before

text

--------------------------

After

::
text
Have a great day,
                         Andy

ToutEnMasm


REM I am a comment

Else,there is a file named ntcmds in C:\WINDOWS\Help\ntcmds.chm

hutch--

Andy,

This is the standard stuff for different types of comments.


Comment&0 «««««,{e}\text\comment0.txt
Comment&1 ¤¤¤¤¤,{e}\text\comment1.txt
Comment&2 ¤=÷=¤,{e}\text\comment2.txt
Comment&3 ÷·÷·÷,{e}\text\comment3.txt
Comment&4 ÷-÷-÷,{e}\text\comment4.txt
Comment&5 ¤*¤*¤,{e}\text\comment5.txt
Comment&6 ¤÷¤÷¤,{e}\text\comment6.txt
Comment&7 -----,{e}\text\comment7.txt
Comment&8 »»»»»,{e}\text\comment8.txt
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

Magnum

I used this.

I want to place 2 :: in front of other text WITHOUT a newline being inserted.

It looks like Qeditor is written to insert newlines for all the text scripts.

Comment&9 :::::,{e}\text\comment9.txt

Have a great day,
                         Andy

Magnum

New plan.

How do I make a file with 2 colons that doesn't have the ODAH in the file.

Seems like debug can do it.

Have a great day,
                         Andy

Magnum

I figured out the problem.
One I removed the linefeed, it worked.

How to edit a text file to remove linefeeds (0DAH)

edit /50 <name of text file>

Delete any linefeeds 
Have a great day,
                         Andy

Magnum

Another way from a batch file guru.

set /p 0=::<nul>dblcolon.txt
Have a great day,
                         Andy