|
-
April 1st, 2002, 05:40 PM
#1
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.
-
April 1st, 2002, 05:55 PM
#2
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
-
April 1st, 2002, 05:58 PM
#3
mount the filesystem from unix
\"Ignorance is bliss....
but only for your enemy\"
-- souleman
-
April 1st, 2002, 06:07 PM
#4
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, 06:50 PM
#5
Junior Member
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"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|