Hi, I can zip a file through the command line, but once I try to do the same from a bat file (using the same script) I got a warnimg messare "WARNING: The system cannot find the file specified", I've tried on my server and from my laptop also with the same results, the script is very very simple:
7z a –tzip "D:\ZIP\ZIPOutPut.zip" "D:\ZIP\ZIPInput.xlsx"
Here you have what I've received.....
D:\ZIP>ZIPTest
D:\ZIP>echo off
7-Zip 22.01 (x64) : Copyright (c) 1999-2022 Igor Pavlov : 2022-07-15
Scanning the drive:
WARNING: The system cannot find the file specified.
D:\ZIP\ZIPOutPut.zip
1 file, 255523 bytes (250 KiB)
Creating archive: ÔÇôtzip.7z
Add new data to archive: 1 file, 255523 bytes (250 KiB)
Files read from disk: 1
Archive size: 226299 bytes (221 KiB)
Scan WARNINGS for files and folders:
Scan WARNINGS: 1
Thanks
minus in your command is not ascii minus character, but some unicode character.