Hirdetés

Új hozzászólás Aktív témák

  • sztanozs
    veterán

    IF EXIST "d:\Reports\" (FORFILES /P "d:\Reports" /S /M *.* /C "cmd /C "if @isdir==FALSE if @fsize "c:\Program Files (x86)\7-Zip\7z.exe" a c:\temp\2023-02-28.zip @FILE" )
    ERROR: Invalid argument/option - 'Files'.
    Type "FORFILES /?" for usage.

    Ha a /C utáni if elől kiveszem a " akkor lefut, de a zip-et nem csinálja meg.

    @Hege -
    itt a kimenet és továbbra sem kreálódik meg a zip:
    IF EXIST "c:\temp\A510" (FORFILES /P "c:\temp\A510" /S /M *.* /C "cmd /C if @isdir==FALSE if @fsize \"\"c:\Program Files (x86)\7-Zip\7z.exe\"\" a c:\temp\2023-02-28.zip @FILE" )

    Oh, nem olvastam el:
    To include special characters in the command line, use the hexadecimal code for the character in 0xHH format (ex. 0x09 for tab). Internal CMD.exe commands should be preceded with "cmd /c".
    talan igy:
    IF EXIST "%A510%" (
    FORFILES /P "%A510%" /S /M *.* /C "cmd /C if @isdir==FALSE if @fsize 0x22c:\Program Files 0x28x860x29\7-Zip\7z.exe0x22 a %b_backup%\%fullstamp%.zip @FILE"
    )

Új hozzászólás Aktív témák