Batch file to delete sub-folders except for one file
- or -
Post a project like this£60(approx. $75)
- Posted:
- Proposals: 9
- Remote
- #2156974
- Expired
Web/Application Developer (C#, Asp.net, Asp.net MVC, VB.Net), SQL Server, SSRS, Crystal Reports, WCF, Web Services, API
Haifa
Freelancer/Azure Devops/DB Developer/Technical-IT Support/Front end developer/ASP.net Developer
Roodepoort
18997628799621875661190711819653722377403240943924204772446985
Description
Experience Level: Entry
Estimated project duration: 1 day or less
I have 300 sub-folders which I need to loop through, delete and replace the contents from a master folder.
However, there is one file which must not be deleted during the initial phase.
I have a batch file to do the copying from the master folder (attached). I need to add the deleting, with the exception for one particular file.
Summary:
1. Find all subfolders called admin
2. Delete contents of subfolders apart from one file called /admin/inc/fn.asp
3. Copy files and folders from master folder (see attached code)
Thanks
However, there is one file which must not be deleted during the initial phase.
I have a batch file to do the copying from the master folder (attached). I need to add the deleting, with the exception for one particular file.
Summary:
1. Find all subfolders called admin
2. Delete contents of subfolders apart from one file called /admin/inc/fn.asp
3. Copy files and folders from master folder (see attached code)
Thanks
Graham M.
100% (14)Projects Completed
17
Freelancers worked with
12
Projects awarded
57%
Last project
23 Dec 2022
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
Hello Graham,
Please confirm the operating system and version (I deduce it is Microsoft Windows).
Regards,
John R
716864
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies