I'm more than obliged to you Steffen, thank you very very much.
My best regards,
T.
Search found 16 matches
- 29 Sep 2020 13:55
- Forum: DOS Batch Forum
- Topic: Get the total size of all subdirectories with a specific name
- Replies: 4
- Views: 4062
- 29 Sep 2020 04:38
- Forum: DOS Batch Forum
- Topic: Get the total size of all subdirectories with a specific name
- Replies: 4
- Views: 4062
Re: Get the total size of all subdirectories with a specific name
Thank you very much indeed Steffen for your reply. I believe the referred to link does have the solution for my question. I just need to specifically refer to any "resfiles" subfolder in this code: @echo off &setlocal set "folder=%userprofile%\Desktop" for /f "tokens=1,2 delims=: " %%a in ('robocopy...
- 28 Sep 2020 04:03
- Forum: DOS Batch Forum
- Topic: Get the total size of all subdirectories with a specific name
- Replies: 4
- Views: 4062
Get the total size of all subdirectories with a specific name
I have a long and deep tree which contains numerous subdirectories for many levels down. "resfiles" is one of those subdirectories that exists in various levels of that tree. What I need is a cmd or a batch that sums the total size of all resfiles subdirectories in all levels and returns: 1. the num...
- 10 Jun 2019 10:01
- Forum: DOS Batch Forum
- Topic: Modifying batch to accommodate for any subfolder with "classified" in its name
- Replies: 7
- Views: 6803
Re: Modifying batch to accommodate for any subfolder with "classified" in its name
Thank you very much Steffen for your precious code. I knew there's something wrong from my side. I will test it again "more carefully" and I'm sure it will work.
I consider this question solved by you Steffen. Please accept my deep respcet and gratitude.
All the best.
T.
I consider this question solved by you Steffen. Please accept my deep respcet and gratitude.
All the best.
T.
- 10 Jun 2019 07:24
- Forum: DOS Batch Forum
- Topic: Modifying batch to accommodate for any subfolder with "classified" in its name
- Replies: 7
- Views: 6803
Re: Modifying batch to accommodate for any subfolder with "classified" in its name
I'm more than grateful Steffen for your solution. However, I tested it, but unforturnately I couldn't make it work. Your code was pasted in a batch file at it is, and tested on C:\My Documents directory that has all subfolders with word "classified" as part of their names, but nothing was changed. W...
- 10 Jun 2019 06:49
- Forum: DOS Batch Forum
- Topic: Modifying batch to accommodate for any subfolder with "classified" in its name
- Replies: 7
- Views: 6803
Re: Modifying batch to accommodate for any subfolder with "classified" in its name
Thank you very much Steffen for your reply. In fact, I find your answer above my knowledge level.
I just want to create subfolders under any subfolder that has "classified" as part of its name.
Once again, thank you very much.
T.
I just want to create subfolders under any subfolder that has "classified" as part of its name.
Once again, thank you very much.
T.
- 09 Jun 2019 21:42
- Forum: DOS Batch Forum
- Topic: Modifying batch to accommodate for any subfolder with "classified" in its name
- Replies: 7
- Views: 6803
Modifying batch to accommodate for any subfolder with "classified" in its name
Hi all, I need to create three subfolders under any subfolder that contains the word "classified" in its name. I have the following code that does the job but under a fixed name subfolder which is "test". @echo off setlocal set folder=C:\My Documents\test for /F "tokens=*" %%G in ('dir "%folder%" /A...
- 17 Mar 2019 10:40
- Forum: DOS Batch Forum
- Topic: batch to overwrite files in all subdirectories in one folder if their names match with files in another folder
- Replies: 10
- Views: 7782
Re: batch to overwrite files in all subdirectories in one folder if their names match with files in another folder
I did used ECHO ON, and "as usual" it was my silly mistake adding a forward slash to the path.
You did a great favour to me tonight, and I do really thank you very much.
You do have a great value added to this world.
All the best.
T.
You did a great favour to me tonight, and I do really thank you very much.
You do have a great value added to this world.
All the best.
T.
- 17 Mar 2019 10:20
- Forum: DOS Batch Forum
- Topic: batch to overwrite files in all subdirectories in one folder if their names match with files in another folder
- Replies: 10
- Views: 7782
Re: batch to overwrite files in all subdirectories in one folder if their names match with files in another folder
Thanks very much indeed.
it did WORK .. I don't know how to thank you .. it took the entire day and you did it in a few seconds ..
Please accept my best personal regards.
T.
it did WORK .. I don't know how to thank you .. it took the entire day and you did it in a few seconds ..
Please accept my best personal regards.
T.
- 17 Mar 2019 06:01
- Forum: DOS Batch Forum
- Topic: batch to overwrite files in all subdirectories in one folder if their names match with files in another folder
- Replies: 10
- Views: 7782
Re: batch to overwrite files in all subdirectories in one folder if their names match with files in another folder
the problem I'm facing is that the previous code does not overwrite mp3 files in their subdirectories. I have to manually change the path of the destination every time I want to run the batch, they are hundreds of subdirectories, actually over 1200. so all that I need is to just put the main directo...
- 16 Mar 2019 23:06
- Forum: DOS Batch Forum
- Topic: batch to overwrite files in all subdirectories in one folder if their names match with files in another folder
- Replies: 10
- Views: 7782
Re: batch to overwrite files in all subdirectories in one folder if their names match with files in another folder
I found the following solution at this link: https://stackoverflow.com/questions/53350200/batch-script-for-copying-files-based-on-name, which worked only on one directory which is the main one and did not run through the tree down to the subdirectories at all levels: for /r "C:\folderA" %%a in (*.fi...
- 16 Mar 2019 13:37
- Forum: DOS Batch Forum
- Topic: batch to overwrite files in all subdirectories in one folder if their names match with files in another folder
- Replies: 10
- Views: 7782
Re: batch to overwrite files in all subdirectories in one folder if their names match with files in another folder
Thanks very much Steffen for your reply. Destination folder A has hundreds of subfolders where each of them has one third level subfolder named "resfiles" where all mp3 files exist. Source folder B has no subfolders and all the mp3 files are just staying in its root. I hope I didn't make it more dif...
- 16 Mar 2019 12:02
- Forum: DOS Batch Forum
- Topic: batch to overwrite files in all subdirectories in one folder if their names match with files in another folder
- Replies: 10
- Views: 7782
batch to overwrite files in all subdirectories in one folder if their names match with files in another folder
I need to overwrite all the mp3 files in all subdirectories under one main directory A, with mp3 files from directory B only if their names match.
I'll be more than grateful to get some precious help with this question.
best regards,
T.
I'll be more than grateful to get some precious help with this question.
best regards,
T.
- 22 Jul 2018 14:42
- Forum: DOS Batch Forum
- Topic: Batch to rename index.html files to their subforders' names
- Replies: 4
- Views: 4045
Re: Batch to rename index.html files to their subforders' names
Thank you very much Steffen for your genius code; it did run soothly and all the index.html files were renamed after their folders as exactly as desired.
Pardon me for a silly mistake that I made before running your code which made it not to run at first time.
Please accept my deep gratitude.
T.
Pardon me for a silly mistake that I made before running your code which made it not to run at first time.
Please accept my deep gratitude.
T.
- 22 Jul 2018 09:36
- Forum: DOS Batch Forum
- Topic: Batch to rename index.html files to their subforders' names
- Replies: 4
- Views: 4045
Re: Batch to rename index.html files to their subforders' names
Thank you very much aGerman for your prompt response to my question. In fact, I followed your instructions and placed the batch file in the parent folder and ran it after removing the echo and pause as advised, but nothing has been changed. I attempting placing the batch file down in the subdirector...