I have amended this to a more simpler explanation below and removed my previous version
Good Afternoon
i was wondering if anyone could advise
Each day we have alogfile which bears the current date, eg 22012013.txt, 23012013.txt etc
I have a move item cmdlet in my script, i would like to record how many files have been moved to 3 specific folders each day and writing the counter to the dated text log mentioned above
Pretend this is my folder structure
folder1
folder2 folder3
As an example, here is how my move-item would work
my move item moves file1.txt to folder1
file2 to folder3
file3 to folder1
file4 to folder3
file5 to folder2
file6 to folder1
In the log file, i would like to see
Items moved to Folder1 = 3
Items moved to Folder2 = 1
Items moved to Folder3 = 2
And that is it as the next day, that days file moves will be recorded in the new log file for that day, i would like the increment to go up for each move item if this is possible
Hope this makes sense
Regards
Barrie