Checking file names in a directory with entries in an excel spreadsheet; What am I doing wrong?
问题 I'm attempting to write a PowerShell script (my first ever, so be gentle) to go through all the file names in a directory and check if they exist in an excel spreadsheet that I have. If a file name does exist in both, I want to move/copy that file to a new directory. Right now it runs with no errors, but nothing actually happens. So far I have: #open excel sheet $objexcel=new-object -com excel.application $workbook=$objexcel.workbooks.open("<spreadsheet location>") #use Sheet2 $worksheet =