Upper lower case sensitivity in filenames

I am working on a script to read file names from a windows directory then go to a linux dir to copy those files down back to windows. The problem that I am facing is linux takes into account upper case and lower case for unique file names and windows does not. For instance on our linux servers we have files with the name Erx_processor.jsp and erx_processor.jsp and they are completely different files. The script I am working on is a backup before deployment for new files so the I need the exact file that we are deploying backed up therefore need to take into account the upper and lower case letters in a file name on windows. Any ideas on how to accomplish this in powershell?


Thanks in Advance - New member to these forums.

And I truly showed my nub status with this question. - SOLVED - The bold part is all I needed.


$process = invoke-expression -command “$FTP -pw $lpw $UName@$Appserver.unix.medcity.net:$paths $test_rollback” | where-object {$_.file -clike “$file”}


Everyone starts learning somewhere and the important points are that you discovered your answer and that you shared it for others to learn from.