Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account

batch file


  • Please log in to reply

#1
Guest_bartblaze_*

Guest_bartblaze_*
  • Guest
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!

  • Community Leader
  • 26,047 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
Guest_bartblaze_*

Guest_bartblaze_*
  • Guest

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