Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: How To Delete Folders/Subfolders With Files Using Batch File

Write a script in your favorite language that will take a file with list of folders and generate a script file with rm command for each of them.

See https://winscp.net/eng/docs/script_upload_file_list
Thyagi

How To Delete Folders/Subfolders With Files Using Batch File

Hi

I am newbie to Batch scripting.
I have a root folder called "Names"..It has subfolders ,these subfolders contains files. I will be giving the names of subfolders to be deleted in text file Ex..
John
Tom
Rambo.
I will be reading the folder names from text file & delete only those folders with files inside the folder also .

Please provide me the code for it.