Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

batch file


  • Please log in to reply

#1
bartblaze

bartblaze

    Member

  • Member
  • PipPipPip
  • 139 posts
Hi all,

I'm wondering how you can use the dir command to list the files that were created (for example) the last 10 days.

I'm currently using the following command, where you of course can easily check the latest files created, but it would be easy if it displays only the files made the last 10 days.

dir /s /o:d > c:\dirlog.txt

Thanks :) .
  • 0

Advertisements


#2
diabillic

diabillic

    Member 1K

  • Member
  • PipPipPipPip
  • 1,370 posts
Add a /p switch

Wont truncate it to 10 days, but will go page by page instead.
  • 0

#3
dsenette

dsenette

    Je suis Napoléon!

  • Administrator
  • 26,019 posts
  • MVP
http://ss64.com/nt/forfiles.html

from memory you actually have to download the forfiles.exe from the MS resource kit
  • 0

#4
diabillic

diabillic

    Member 1K

  • Member
  • PipPipPipPip
  • 1,370 posts
Yep, MRK has all of the nifty powertools :)
  • 0

#5
bartblaze

bartblaze

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 139 posts

Add a /p switch

Wont truncate it to 10 days, but will go page by page instead.


Thanks, but when I use the /p switch I don't see any difference in the result. What am I missing ?

http://ss64.com/nt/forfiles.html

from memory you actually have to download the forfiles.exe from the MS resource kit


Thanks dsenette, I will check it out !

Cheers :) .
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP