Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $Excel = New-Object -Com Excel.Application
- foreach ($File in (gci *xls)) {
- $Workbook = $Excel.Workbooks.Open($File.FullName)
- $Workbook.SaveAs(($File.FullName + "x"), 51)
- $Workbook.Close($false)}
- $Excel.Quit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement