I need to create a zip file for any files no create only one file.
I used (setq fso (vlax-create-object "Scripting.FileSystemObject")) to doit
But in windows 11 is not running. (i thinks so)
I try to use PowerShell with this command
(startapp "powershell.exe" (strcat "-Command Compress-Archive -path " filename " -Update -DestinationPath "fileZIP " -CompressionLevel Fastest"))
But in any computers does not run. I think that is the Execution police is restricted
But command Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser
I try to create a ps1 file whit instructions but PowerShell said
No se puede cargar el archivo ps1 porque la ejecucie scripts está deshabilitada en este sistema. Para obtener más informaciconsulta el tema
about_Execution_Policies en https:/go.microsoft.com/fwlink/?LinkID=135170.
+ CategoryInfo : SecurityError: (
[], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnauthorizedAccess
Anyone knows a simple version to create zip file.
The command must be executed in three party computer. I wouldn't like to force you to install 7zip or any other software