Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8085617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T18:10:54+00:00 2026-06-05T18:10:54+00:00

What would be the windows (command prompt) equivalent of the following command? find -cmin

  • 0

What would be the windows (command prompt) equivalent of the following command?

find -cmin +24 | xargs rm

This command finds all files with “status changed over 24 minutes ago”, and then removes them.

It is suggested in the php.ini config file as a way to clear old session files, but my server is a windows system.

I’ve found out that ‘dir’ has the /T:A option, but that only gets me so far.. How would I delete the files older than 24 minutes?

Cheers!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T18:10:56+00:00Added an answer on June 5, 2026 at 6:10 pm

    While this isn’t in command, if you’ve got Powershell on the machine, the following script will work.

    $oldest = [system.datetime]::Now.AddMinutes(-1)
    # Directory to clean up
    $directory = "C:\Temp\test2"
    
    # This lists the files it would delete
    dir $directory | where-object {$_.LastWriteTime -lt $oldest}
    
    # Uncomment this line to delete them
    #dir $directory | where-object {$_.LastWriteTime -lt $oldest} | erase
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How would I get total CPU Usage from Windows Command Prompt?: Expected Output: 27%
What is the order in which the Windows command prompt executes files with the
In my windows vista command prompt I am unable to run an executable like
When i run the following command in the visual studio command prompt: D:\Documents\DEV\SARPilot\Docs\eoschema\schema\OrderSchema>svcutil /t:code
In the Windows Explorer there is a function 'command-prompt-here' that opens a command prompt
Is it possible to change the Windows command prompt working directory via Python script?
I would like to run a browser (Internet Explorer) from a command prompt using
I have mysql dump command that I would like to run from from windows
Is there anyway to write commands to the command prompt in windows and execute
The goal behind this question is to create a portable Windows script/program that would

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.