I would like to know how to create a powershell script to copy files from one location another.

The script is required to check a file name before it starts to copy.

The file name is in the current date format (swddmmyyy) eg sw16/11/2011. This file name changes every day so tomorrow it will be sw17112011. 

So when the script runs, it checks that the file name matches with the current date before copying the contents from a folder. The file is in the same folder as the contents which require copying.

```
$date = (get-date).adddays(0).ToString("ddMMyyyy") 
$filter = "sw_$date" 
$file = "c:\scripts\$filter" 
$check = test-path $file 
$script = $check -eq $true 
If ($script) {Get-ChildItem C:\scripts*.csv | Copy-Item -destination c:\test}

```

Thanks in advance