Skip to main content

All Questions

Tagged with
1 vote
2 answers
1k views

How to copy files changed in last 20 days to a different location recusively

I found a code here (on this site) which allows copying of files changed in last 20 days. My issue is that I have a folder with many subfolders and some subfolders could be 8 or more levels deeps. I ...
Mohammed Khawaja's user avatar
0 votes
0 answers
2k views

recursively delete a specific directory for each user in C:\Users

Would like to use powershell to loop through all C:\Users\* and delete all contents of a subdirectory... Some users, but not all, use an app that creates cache files at: C:\Users\UserName\AppData\...
AM_Hawk's user avatar
  • 101
0 votes
0 answers
267 views

Add attribute to a file/folder

I tried that to add an attribute to a file/folder Get-ChildItem '$PATH' -Recurse | foreach{$_.Attributes = $_.Attributes + 'Compressed'} Problem is that it create a cycle like that : Not compressed &...
aac's user avatar
  • 1
0 votes
1 answer
1k views

Parallel processing and order of execution with recursive loop

If i run a script that processes a path recursively using parallel processing to execute a command on the whole tree if items, am I guaranteed that the commands I use will be executed on all items in ...
maja's user avatar
  • 329
0 votes
1 answer
814 views

Use Powershell to Download Webfiles Based on UTF8 Text File List

Aiming to download website files via powershell; get the name from each line of a text file; with UTF8 support (supporting international text names); & save the files to a directory with the ...
user avatar
0 votes
1 answer
197 views

Copy files from folders which contain less than a number of files

Coming from Bash: Find folders with less than x files find . -type d -exec sh -c 'set -- "$0"/*.flac; ! [ -e "$1" ]' {} \; -print How do I extend the line to now recurse through the resulting list ...
foax's user avatar
  • 38
1 vote
3 answers
298 views

PowerShell: Rename/delete files in a folder that can appear at different places in the file hierarchy

Currently trying to figure out a way to rename PDF files in a certain folder (/root) that are directly or indirectly inside a purchases folder that is itself directly or indirectly inside the /...
loewie1984's user avatar
3 votes
1 answer
10k views

PowerShell command for ffmpeg to process items in a folder recursively

I'm trying to figure out what PowerShell command [or script if necessary] might allow ffmpeg to recursively traverse a directory, pull stills via the -vf flag, and put all the stills into a folder ...
user260467's user avatar
2 votes
1 answer
5k views

PowerShell touch all files newer than

I have found the following question on ServerFault: Windows recursive touch command Which partially answers my question with this answer: Windows recursive touch command However, I would like to ...
atwright147's user avatar