Rothbard
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.
|-- 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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.