Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I am unable to pipe\rediret text within a single batch file with the intention that all text lines are available to ECHO and located at the end of the file. The batch files are used to backup six important applications and folders to a flashdrive. Drive E: is my working drive and intentionally not part of PATH.
The normal piping method of:
FIND /I "compl" <E:\tmp$$$ >E:\De$is long winded, defeats the object to make things neater. In any case how do I extract the text from De$ to use in a batch file?
The line in E:\X.BAT:
FIND /I "compl" <E:\X.bat >E:\De$
Goto Again
The update is completed
Other text lines
Other text lines
:OUTextracts the string "The update is completed"
and the FIND line use to find it! Again, I need to be able to echo that text within the batch file. I have attempted %%a, %A% etc etc but to no avail.Any help would be appreciated
Gordon Williams

Hi,
I guess that the lines you posred are incomplete.
If you want to echo somthing, first you turn echo off. Then you echo the text; like this:
@echo off
echo hello
echo test oneYou have a goto again, but there's no again label.
It's pronanly not a good idea to redirect the bat being run.
If you post something more complete, we can get to the more difficult isse of using lines within a file to do other things.

![]() |
Close application
|
Armstorng Number Programm...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |