Link to home
Start Free TrialLog in
Avatar of Rothbard
RothbardFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Get a list of directories without a given subdirectory

Suppose I have a directory tree like the following:

 |-- Store1
 |   |-- Clients
 |   |-- Orders
 |-- Store2
 |   |-- Clients
 |   |-- Orders
 |-- Store3
 |   |-- Clients
 |-- Store4
 |   |-- Clients
 
i.e., some directories have an "Orders" subdirectory and others don't. I would like a Windows Powershell script to get a list of all the directories which have no "Orders" subdirectory, and output the results to a file. This is similar to my previous question "Get list of nonempty directories".

I am using Windows 7.
SOLUTION
Avatar of SubSun
SubSun
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial