April 1st, 2002, 04:40 PM
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.
April 1st, 2002, 04:55 PM
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)
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.
April 1st, 2002, 04:58 PM
mount the filesystem from unix
\"Ignorance is bliss....
but only for your enemy\"
April 1st, 2002, 05:07 PM
Now that actually is a good idea soule, that I could do. I will bring a linux laptop here tomorrow
You\'re either a 0 or a 1, alive or dead
April 1st, 2002, 05:50 PM
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.
"I forgive you for those unkind words Molesworth"