Search found 7 matches
- 10 Apr 2021 13:48
- Forum: DOS Batch Forum
- Topic: Rename all files in all subfolders except some folders
- Replies: 2
- Views: 3259
Re: Rename all files in all subfolders except some folders
Thanks a lot, exactly what I was looking for.
- 10 Apr 2021 06:10
- Forum: DOS Batch Forum
- Topic: Rename all files in all subfolders except some folders
- Replies: 2
- Views: 3259
Rename all files in all subfolders except some folders
Hello, I want to rename all .txt files to .old in all subfolders of a main folder except for subfolders called "archive" and "new". I see how to rename files in all subfolders but I don't know how to exclude some folders from the script. For /R MainFolder\ %%G in (*.txt) do REN "%%G" "%%~nG.old" Any...
- 05 Feb 2021 09:30
- Forum: DOS Batch Forum
- Topic: Exclude files if specific folder name
- Replies: 5
- Views: 4644
Re: Exclude files if specific folder name
Right, it works now, thank you!
- 05 Feb 2021 09:11
- Forum: DOS Batch Forum
- Topic: Exclude files if specific folder name
- Replies: 5
- Views: 4644
Re: Exclude files if specific folder name
Hmm for some reason with this nothing happens, even if subfolder name is different, no files are being renamed.
- 05 Feb 2021 05:43
- Forum: DOS Batch Forum
- Topic: Exclude files if specific folder name
- Replies: 5
- Views: 4644
Exclude files if specific folder name
Hello, This code below changes .dll files into .bak files in BaseFolder and its subfolders. I just want to exclude files whose folder containing them has a specific name, let's say there is a subfolder called "DoNotModify". set folder=My\BaseFolder\ pushd "!folder!" set "folderpath=!cd!" if not "!fo...
- 17 Dec 2020 05:49
- Forum: DOS Batch Forum
- Topic: color based on file extension
- Replies: 4
- Views: 5234
Re: color based on file extension
Ok I'm not sure where and how to use the IF command without breaking the index, could you detail it please? It's my first script only had experience with ahk before.
- 16 Dec 2020 12:18
- Forum: DOS Batch Forum
- Topic: color based on file extension
- Replies: 4
- Views: 5234
color based on file extension
Hello So that's a part of my script that lists files in a folder and displays them so I can select one and change its extension. It works as expected but I would like to add colours based on file extensions. For exemple .dll files show in green and .bak files show in red. In the current state it sho...