Skip to main content

All Questions

Tagged with
1 vote
1 answer
2k views

Batch Script to delete certain files inside subfolders of a main subfolder

My problem is this I have an extensive collection of pictures spanning several sub-folders (I'm talking of several hundred of folders, not a few), under a main folder, as example: Birthdays Mom ...
diras2010's user avatar
  • 308
0 votes
3 answers
1k views

Recursively remove a character from folders in Windows

Given a folder structure: ---- folder1#name --------- folder2#name ---- folder3#name --------- folder4#name ------------ folder5#name ------------ folder6#name ------------ folder7#name I want to ...
Edd Chang's user avatar
  • 111
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
2 answers
2k views

7z - compress files in sub-directory, name them for parent folder

I'm trying to compress a folder structure like so: Root |_ Folder |_Sub Folder 1 |_Files |_Sub Folder 2 |_Files |_ *more Sub Folders* I need to create .zip file ...
Charles O'Connor's user avatar
1 vote
1 answer
1k views

search and copy files from a directory structure by reading a text file

I have a folder with many subfolders and files in them. I have a text file with the names of the files that I want copied to a separate destination folder. The filenames in the text file do not have ...
Regmi's user avatar
  • 855
6 votes
2 answers
14k views

How to recursively copy and rename files in the same directory using Windows command line

I'd like to avoid using a batch file, if possible. Based on this answer to a question about recursive renaming or moving, I've came up with the following command (for copying all files named web.foo....
Mike Godin's user avatar
2 votes
1 answer
11k views

Recursively process zip archives to extract files while discarding specific format of files

UPDATE: I noticed that many people are viewing this thread, which makes me believe that this situation is not so rare after all. Anyway, I had asked a similar/related question on SO here, which has ...
Fr0zenFyr's user avatar
  • 131
0 votes
2 answers
5k views

How to recursively zip every file in each folder?

I am trying to write a batch script that when run into a folder, it takes all the files in this folder and zip them into one, then takes the remaining folders and looks into them and do the same, ...
untore's user avatar
  • 161
7 votes
10 answers
15k views

List all files and dirs without recursion with junctions

Is there a native|portable tool that can give me a unicode or a system local-compatible list of all files and directories under a path recursively, without recursing into junction points or links, in ...
n611x007's user avatar
  • 6,426
0 votes
1 answer
1k views

How to Unzip files recursively in Linux / DOS

I have a zipped folder which contains thousands of zipped folders contained in itself and that goes down the hierarchy, I have to unzip each and every file and place it in a single folder. This task ...
Murtaza's user avatar
  • 131
2 votes
2 answers
6k views

Windows CMD command to run a command inside every subdirectory?

I have a batch script I wrote called "joiner.bat." It needs to run inside each of 730 sub-directories of a folder. The joiner.bat file has already been copied into each of the sub-folders, it just ...
jlacroix82's user avatar
6 votes
4 answers
6k views

Mass Checksumming tool for Windows?

I'm looking for a command line tool for windows that will go over a directory tree (recursively) and output a list of all the files in there, and a checksum for each file (can be CRC, MD5, whatever). ...
Daniel Magliola's user avatar