Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about special-folders

Read more about special-folders

python (65.2k questions)

javascript (44.3k questions)

reactjs (22.7k questions)

java (20.8k questions)

c# (17.4k questions)

html (16.3k questions)

r (13.7k questions)

android (13k questions)

Questions - special-folders

Batchfile to delete all folders but the latest AND a special folder

hope you can help me. I am looking for a way to use batchscript to delete all folders in a subfolder except the very newest folder AND a special folder named "BACKUP". So the backup folder...
test-img

ZuMe

batch-file

directory

delete-file

special-folders

Votes: 0

Answers: 2

Latest Answer

Build a list of directories by dir sorted by age from newest to oldest, filter out unwanted ones by findstr, then use for /F to iterate through the list but skip the very first item: rem // Change in...
test-img

aschipfl

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved