Search found 33 matches
- Sun Jul 08, 2018 10:45 am
- Forum: PowerShell
- Topic: year and countryname extract
- Replies: 22
- Views: 5385
year and countryname extract
Hi Expert, I am trying split the country and year from the file name order by LastWriteTime and wants to move remaining file to archive folder by year wise but can only filter the year not and not country name $sourcedir = 'C:\Users\garang\Documents\input_files\Advisory_rate' $destdir = 'C:\Users\ga...
- Tue Jul 03, 2018 9:10 pm
- Forum: PowerShell
- Topic: exclude specific file
- Replies: 11
- Views: 3783
Re: exclude specific file
your solution is correct ..is there any button to notify it
- Tue Jul 03, 2018 11:34 am
- Forum: PowerShell
- Topic: exclude specific file
- Replies: 11
- Views: 3783
Re: exclude specific file
How can i give helpful and correct solution remarks
- Tue Jul 03, 2018 11:17 am
- Forum: PowerShell
- Topic: exclude specific file
- Replies: 11
- Views: 3783
Re: exclude specific file
*' i removed this from the source directory due to giving an error with your first solution It's working now moving all files the except two files..How to copy that two files to destination directory in the same statement I tried with pipe to your statement but not working $sourcedir = 'C:\Users\ga...
- Tue Jul 03, 2018 10:54 am
- Forum: PowerShell
- Topic: exclude specific file
- Replies: 11
- Views: 3783
Re: exclude specific file
no still not moving
- Tue Jul 03, 2018 10:45 am
- Forum: PowerShell
- Topic: exclude specific file
- Replies: 11
- Views: 3783
Re: exclude specific file
sorry not working and not moving any file
- Tue Jul 03, 2018 10:05 am
- Forum: PowerShell
- Topic: exclude specific file
- Replies: 11
- Views: 3783
exclude specific file
Hi Expert, I am trying to move the file to archive except for 2 files and just want to copy this files to archive.. but getting the error message input parameter is invalid $sourcedir = 'C:\Users\garang\Documents\input_files\Advisory_rate' $destdir = 'C:\Users\garang\Documents\input_files\Advisory_r...
- Sat Jun 30, 2018 3:29 am
- Forum: PowerShell
- Topic: Multiple exclude rule
- Replies: 7
- Views: 2464
Re: Multiple exclude rule
Suggestion please
- Fri Jun 29, 2018 8:37 am
- Forum: PowerShell
- Topic: year in file name & last modified date
- Replies: 1
- Views: 1079
year in file name & last modified date
Hi Expert, I wanted to move item based on 'year' in the file name and last modified date in the file name the below example year=2017 and last modified date 28/06/2017 22:00 so the remaining file will go into the archive similarly, for the year 2017 so in the result, only 2 files will be there and r...
- Fri Jun 29, 2018 6:22 am
- Forum: PowerShell
- Topic: Multiple exclude rule
- Replies: 7
- Views: 2464
Re: Multiple exclude rule
Previous error fixed.... I tried below-mentioned query today and getting all the values year , country but how to get max(last modified date for that particular year and country $Files = Get-ChildItem -File C:\Users\rramesnc\Documents\Advisory_Rate | select Name, LastWriteTime foreach($FileName in $...