Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

powershell delete empty folders

$tdc="C:acd"
$dirs = gci $tdc -directory -recurse | Where { (gci $_.fullName).count -eq 0 } | select -expandproperty FullName
$dirs | Foreach-Object { Remove-Item $_ }
Comment

PREVIOUS NEXT
Code Example
Shell :: kubernetes copy secret form another namespace 
Shell :: powershell type of object 
Shell :: restart ubuntu terminal command 
Shell :: how to install nginx on centos 7 
Shell :: git remove credentials windows 
Shell :: grafana speedtest 
Shell :: sed from match to end of file 
Shell :: git config set email 
Shell :: install rvm for ruby 
Shell :: speedtest linux console 
Shell :: uninstall django ubuntu 
Shell :: github get repo size 
Shell :: pip install django invalid syntax 
Shell :: what is gist in github 
Shell :: how to chanbge port number on centos8 
Shell :: pip install cookiecutter 
Shell :: .bat script on computer startup 
Shell :: linux find files older than 15 minutes 
Shell :: docker image is not reseting 
Shell :: git clean local branches 
Shell :: powershell global variable 
Shell :: brew show package info 
Shell :: how to install npm packages globally 
Shell :: npm supertest 
Shell :: how to install gdal on pyhon 3.9 
Shell :: wsl export 
Shell :: git clone password authentication failed 
Shell :: yarn install package 
Shell :: git remove file from repository 
Shell :: git to png linux 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =