-
DOS piping
I am looking for something that will do piping in DOS. For example, here is what I want to do, I want to search a network volume for all files containing the following Ba*.wbk, I want for it to search and delete these files on the fly.
I know how to do this in Unix, but how would I do this in a Windows/DOS enviroment. Any help would be appreciated.
-
This is VERY basic, but you might be able to try something like this:
First, map the volume to a drive (e.g. drive R)
then,
cd R:
dir Ba*.wbk > deletelog.log (this will give you a log file of what your going to delete)
del Ba*.wbk (this should delete everything)
As you can tell, I haven't given this much thought, so you'll want to test.
DjM
-
mount the filesystem from unix ;)
-
Now that actually is a good idea soule, that I could do. I will bring a linux laptop here tomorrow :)
-
If you did want to do the search/delete from DOS you could use SST by Keith Ledbetter. The following command would probably work:
sst ba*.wbk -v
SST is a very powerful command line tool. I'm sure a Google search would find the last version, 1991 I think.