D
Dennis
Using only DOS commandline functions, how can I reformat
two textfile lines into one line? I often use batchfile
routines to extract or generate a line of data which I
want to SET into the Environment as a Variable. Thus the
process goes something like this:
echo SET VAR1=>SetVar1.bat
TYPE Sourcefile.txt | FIND "TextString">>SetVar1.bat
I now have a secondary batch file which contains 2 lines -
SET VAR1=
TextString
I need to remove the 'Line Feed/Carriage Return' to
reformat it into 1 line -
SET VAR1=TextString
Then I can 'CALL SetVar1.bat' to SET the Environmental
Variable for use in the original batchfile routine.
Is there a DOS-based method to do this, since I cannot
rely on a supplemental 'Search & Replace' utility which
may not exist on a remote User's PC.
OS is Win2000 & WinXP - would be helpful if method also
works for WinME/Win98/Win95.
Suggestions? Thanks for help.
two textfile lines into one line? I often use batchfile
routines to extract or generate a line of data which I
want to SET into the Environment as a Variable. Thus the
process goes something like this:
echo SET VAR1=>SetVar1.bat
TYPE Sourcefile.txt | FIND "TextString">>SetVar1.bat
I now have a secondary batch file which contains 2 lines -
SET VAR1=
TextString
I need to remove the 'Line Feed/Carriage Return' to
reformat it into 1 line -
SET VAR1=TextString
Then I can 'CALL SetVar1.bat' to SET the Environmental
Variable for use in the original batchfile routine.
Is there a DOS-based method to do this, since I cannot
rely on a supplemental 'Search & Replace' utility which
may not exist on a remote User's PC.
OS is Win2000 & WinXP - would be helpful if method also
works for WinME/Win98/Win95.
Suggestions? Thanks for help.