Creating a batch file to save my sanity.... Can anyone help?

Closed
Golgotha67 Posts 1 Registration date Tuesday May 27, 2014 Status Member Last seen May 27, 2014 - May 27, 2014 at 12:43 PM
 Blocked Profile - May 28, 2014 at 03:42 PM
Good Morning,
I have been tasked with researching and finding on a windows server the following:

1. All locations of a folder named \archive
2. The size of the \archive folder
3. The newest and oldest file name and date inside the \archive folder

Output of file >results.txt Displayed as

\Archive folder Path and size
Newest file and size (if empty display nothing)
Oldest file name and size (if empty display nothing)

Next \Archive folder Path and size
Newest file and size (if empty display nothing)
Oldest file name and size (if empty display nothing)

Any help would be greatly appreciated!
Related:

1 response

Blocked Profile
May 28, 2014 at 03:33 PM
Is this for work? Is this a homework assignment?
0
Kinda both in a matter of speaking. I was tasked with obtaining the data and I will go blind doing each instance manually because there are a bunch of \archive locations. Why do you ask? Can you assist?
0
Blocked Profile
May 28, 2014 at 03:42 PM
Yes, I can help, but I am not doing homework.

you want a bat file? I already have an ASP code if you know how to deploy ASP.
0