Search found 33 matches

by sshree43
Fri Jun 29, 2018 2:42 am
Forum: Windows PowerShell
Topic: Multiple exclude rule
Replies: 7
Views: 1030

Re: Multiple exclude rule

I am getting error on running this file $FileName=C:\Users\rramesnc\Documents\Advisory_Rate\*.*; $Files = Get-ChildItem -File C:\Users\rramesnc\Documents\Advisory_Rate | select Name, LastWriteTime foreach($FileName in $Files) { #- Split elements: 0 = SS, 1 = MM, 2 = Master, 3 = Country, 4 = Year # -...
by sshree43
Thu Jun 28, 2018 7:30 am
Forum: Windows PowerShell
Topic: Multiple exclude rule
Replies: 7
Views: 1030

Re: Multiple exclude rule

but how to get last modified date based on the file_name and year
by sshree43
Wed Jun 27, 2018 11:58 am
Forum: Windows PowerShell
Topic: Multiple exclude rule
Replies: 7
Views: 1030

Multiple exclude rule

I have a requirement to exclude files based on year, country name and last modified date from that particular year and rest files from that particular year and the country moved to an archive folder for an example SS_MM_Master_finland_2018.xlsx last modified date 27/06/2018 19:00. SS_MM_Master_finla...