es.davy.ai

Preguntas y respuestas de programación confiables

¿Tienes una pregunta?

Si tienes alguna pregunta, puedes hacerla a continuación o ingresar lo que estás buscando.

Tag: POWER-PLATFORM

Powershell Excel SaveAs requiere confirmación.

Utilizo el siguiente script para convertir un montón de archivos xls a xlsx. $folderpath = %tempPath% $filetype =”*xls” Add-Type -AssemblyName Microsoft.Office.Interop.Excel $xlFixedFormat = [Microsoft.Office.Interop.Excel.XlFileFormat]::xlWorkbookDefault write-host $xlFixedFormat $excel = New-Object -ComObject excel.application $excel.visible = $true Get-ChildItem -Path $folderpath -Include $filetype -recurse | ForEach-Object ` { $path = ($_.fullname).substring(0, ($_.FullName).lastindexOf(“.”)) “Convirtiendo $path” . . . Read more