Ashish's Note

Over the past few years, I learnt a lot and get fond of Microsoft Technlogy. From The basics of Active Directory to the high end troubleshooting and disaster recovery, to the VPN configuration, Its being a good time for me as I got lots of opportunities to learn and grow.

In 2004, I got hired by "Microsoft" as a full time employee in its GTSC located in Bangalore. I experienced hardcore troubleshooting on real time issues as a big challange and very very intersting, which gave me vibrant knowledge of Operating System Troubleshooting, Active Directory, Clustering, Performance, Disks, Terminal Server, Printing, STOP Codes and BSOD screens.

My Fantastic past experience on HP/MSCS cluster, Server Hardware and System Administration, boosted my skills to take charge of customer's problem and make me to deal with the issues till the resolution.


Today working with Perot Systems, I am using this Blog to contribute my knowledge to the society and to make every individual who need directives to grow in IT field.

Lets post your views and questions you have, hit my brain to let it mentor the best possible IT solutions and career options.

Yours,

Ashish Sharma.

Saturday, July 7, 2007

FORFILES: Select a file tree to process a batch job like delete function

Microsoft reskit tool “forfiles” do a search in specific folder and its subfolders, can delete files with time stamp criteria.

I was using this utility when I was in Microsoft and played with the log file of various servers.

The folling command line can be used to delete 30 days old files from the path given, including subfolders:

forfiles –p[TREE_PATH] -s -m*log* -d-30 -c"cmd /c del @FILE"