Menu

#444 WARNING: The system cannot find the file specified

None
open
None
5
2023-01-04
2023-01-03
Jorge
No

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:

D:\ZIP\ZIPOutPut.zip : The system cannot find the file specified.

Scan WARNINGS: 1

Thanks

Discussion

  • Igor Pavlov

    Igor Pavlov - 2023-01-04
    • Group: -->
     
  • Igor Pavlov

    Igor Pavlov - 2023-01-04

    minus in your command is not ascii minus character, but some unicode character.

    -tzip
    
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.