echo questions

  • Thread starter Thread starter Henry
  • Start date Start date
H

Henry

Hi all.

I'm trying to recreate a file and changing some of the
contense making use of echo. I ran into a few snags with
which I need help.
1) I'm trying to create a blank line in the file?
2) I'm trying to add this: Text a | text b
the problem I have with point 2 it that I can't have
any "" displayed in the line by making use of "Text a |
text b"

any suggestions?
ps. I would like to stay away from utilities as this will
run on various servers
 
Henry said:
Hi all.

I'm trying to recreate a file and changing some of the
contense making use of echo. I ran into a few snags with
which I need help.
1) I'm trying to create a blank line in the file?
2) I'm trying to add this: Text a | text b
the problem I have with point 2 it that I can't have
any "" displayed in the line by making use of "Text a |
text b"

any suggestions?
ps. I would like to stay away from utilities as this will
run on various servers

Blank line:

echo/>>c:\yourpath\yourfile.txt

'Text a | text b':

echo/Text a ^| text b>>c:\yourpath\yourfile.txt
 
Hello Henry.

Henry wrote
Hi all.

I'm trying to recreate a file and changing some of the
contense making use of echo. I ran into a few snags with
which I need help.
1) I'm trying to create a blank line in the file?
echo.>>file.txt

2) I'm trying to add this: Text a | text b
the problem I have with point 2 it that I can't have
any "" displayed in the line by making use of "Text a |
text b"
any suggestions?
ps. I would like to stay away from utilities as this will
run on various servers

for /f %%p in ("|") do echo Text a %%p text b>>file.txt
 
Back
Top