> -----Original Message----- > From: profoxtech-boun...@leafe.com [mailto:profoxtech-boun...@leafe.com] > On Behalf Of Paul Hill > Sent: Wednesday, September 14, 2011 2:15 PM > To: profoxt...@leafe.com > Subject: Re: [NF] Microsoft unveils a radically redesigned Windows 8 > > What? Like this: > > C:\Windows\system32>dir | findstr "audio" | sort > > 03/02/2006 09:41 16,592 x3daudio1_0.dll > 05/03/2007 13:42 17,688 x3daudio1_1.dll > 20/11/2010 14:24 126,464 audiodg.exe > 20/11/2010 14:25 679,424 audiosrv.dll > > Agreed, it's not as powerful as *nix shell scripts, but you would be > supprised at what can be done with Windows scripts. > > -- > Paul
Got me to thinking that this might be a good chance to ask for some help, and still in the context of the thread... ;) >From time to time my users want a listing of all the Documents (*.doc) in our Policies folders, of which there are subfolders for each department: Policies \Admin \ER \IT .... etc Problem is the server they are stored on ran/runs FrontPage which has some requirement to have it's own subfolders named something like _vti_cnf (some sort of version control thingy I think). Googling around says not to mess with those, and if you do, FrontPage just recreates them anyways... So it really looks like this: Policies \Admin \_vti_cnf \ER \_vti_cnf \IT \_vti_cnf .... etc These _vti_cnf folders are all marked with the Hidden attribute. So anyway, when I produce the listing I do something like this: dir *.doc /b /s > myfile.txt Then I have to edit the file to take out all the lines with _vti_cnf references. So taking Paul's suggestion I tried this: dir /b /s | findstr ".doc" | sort > myfile.txt Fine, but includes the hidden folders which contain .doc files in them (the .doc files themselves are not marked as hidden attrib). So I tried this: dir /b /s /A-H | findstr ".doc" | sort > myfile.txt No joy. So I tried this (figuring I can sort it later): dir *.doc /b /s /A-H >myfile.txt I've never used the .not. operator of the /A attrib parameter before, and in this case it is not being respected. I still get the .doc files in the hidden folders. So I guess the command line kung-fu I am wanting is a way to get a list of all the *.doc files, in all the subdirs that are not marked as Hidden. (I'll sort it myself later). Any takers? Thanks, Matthew Jarvis || Business Systems Analyst IT Department McKenzie-Willamette Medical Center 1460 G Street, Springfield, OR 97477 || Ph: 541-744-6092 || Fax: 541-744-6145 -------------------------------------------------------------------------- Disclaimer: This electronic message may contain information that is Proprietary, Confidential, or legally privileged or protected. It is intended only for the use of the individual(s) and entity named in the message. If you are not an intended recipient of this message, please notify the sender immediately and delete the material from your computer. Do not deliver, distribute or copy this message and do not disclose its contents or take any action in reliance on the information it contains. _______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/69f310c05dd83c48a84ba3769ce1ecf805a05...@tntriexevs02.triadhospitals.net ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.