I don't know how to search with it, but I use the following command in a batch 
script to get just the date and dump the day information:

FOR /F "TOKENS=1* DELIMS= " uZm9ybWF0aW9uOg0KDQpGT1IgL0YgIlRB

If you run it in the command prompt you need to drop the leading % for both 
variables A and B.

Instead of getting 'Fri 08/08/2008' you get '08/08/2008' and should you get 
find to use %date% as a value to search you should be in business!

Good luck!

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 08, 2008 5:43 PM
To: NT System Admin Issues
Subject: Batch File quickie

Hi all,

Need help with a simple batch file.
I need to list all files created/modified today via a batch file.
I have the below but it's not working so well.
Any ideas?


dir c:\ /b /O:N /S | find "%date%"


Thanks

 
Dave
 
 -----------------------------------
|Beach Computers                    |
|Affordable Hosting Solutions       |
|http://www.beachcomp.com           |
 ===================================
|Cheap Domain Warehouse             |
|Get Your Own Dot!                  |
|http://www.cheapdomainwarehouse.com|
 ---------------------------------- 

------------------------------------
Disclaimer and confidentiality note:

The contents of this communication are intended/meant only for addressee(s) and 
may contain information that is privileged or otherwise confidential.
If you are not the intended recipient you are hereby notified that any 
disclosure, copying, distribution or taking any action in reliance on the
contents of this information is strictly prohibited and may be unlawful.
The contents of this e-mail shall not be forwarded to any third party. If you 
have received this electronic mail transmission in error, please delete
it from your system without copying or forwarding it, and notify the sender of 
the error by reply email, so that the sender's address records
can be corrected.
Views and opinions are solely those of the sender unless clearly indicated as 
being that of Beach Computers or any of it's affiliated companies.
Beach Computers cannot assure that the integrity of this communication has been 
maintained or that it is free of errors, virus, interception or interference.





~ Upgrade to Next Generation Antispam/Antivirus with Ninja!    ~
~ <http://www.sunbelt-software.com/SunbeltMessagingNinja.cfm>  ~

~ Upgrade to Next Generation Antispam/Antivirus with Ninja!    ~
~ <http://www.sunbelt-software.com/SunbeltMessagingNinja.cfm>  ~

Reply via email to