Menu

run 7za in wince error

Help
2017-04-12
2017-04-12
  • twinkleshao78

    twinkleshao78 - 2017-04-12

    Hi,
    I run 7za command line in wince, but show error message, but in windows, the following command is no problem, does some guys can help me ?

    Command Line Error:
    Unsupported command:
    harddisk\afcagm\a.log.tar
    \HARDDISK\AFCAGM\7Z> 7za/?
    Cannot execute 7za/?.exe.
    \HARDDISK\AFCAGM\7Z> 7za a -y -bso0 -ttar \harddisk\afcagm\a.log.tar \harddisk\a
    fcagm\a.log

    Command Line Error:
    Unsupported command:
    \harddisk\afcagm\a.log.tar
    \HARDDISK\AFCAGM\7Z>

     
  • Igor Pavlov

    Igor Pavlov - 2017-04-12

    I didn't test 7za.exe at wince. So probably there is BUG here.
    But 7zg probably must work.

    And try to fix the code:

    CPP\7zip\UI\Console\Main.cpp

      UStringVector commandStrings;
    
      #ifdef _WIN32
      NCommandLineParser::SplitCommandLine(GetCommandLineW(), commandStrings);
      #else
      GetArguments(numArgs, args, commandStrings);
      #endif
    
      #ifndef UNDER_CE
      if (commandStrings.Size() > 0)
        commandStrings.Delete(0);
      #endif
    
      if (commandStrings.Size() == 0)
      {
        ShowCopyrightAndHelp(g_StdStream, true);
        return 0;
      }
    
      CArcCmdLineOptions options;
    
     
  • twinkleshao78

    twinkleshao78 - 2017-04-12

    please 7zG is command line, I need command line only, thx.

     
  • twinkleshao78

    twinkleshao78 - 2017-04-12

    And does 7zG.exe need any dll ?

     
  • twinkleshao78

    twinkleshao78 - 2017-04-12

    After I modify main.cpp, and some good but finally error.

    \HARDDISK\AFCAGM\7Z> 7z a File.7z *.log -r

    7-Zip [32] 16.04 : Copyright (c) 1999-2016 Igor Pavlov : 2016-10-04

    Scanning the drive:
    57 files, 17097595 bytes (17 MiB)

    Creating archive: File.7z

    Items to compress: 57

    ERROR: Can't allocate required memory!

     
  • twinkleshao78

    twinkleshao78 - 2017-04-12

    And if I run 7zG.exe in Wince, show error window. (Show: Specify command )

     
  • twinkleshao78

    twinkleshao78 - 2017-04-12

    Thank you, Now I use 7z.exe is OK, so thank you very much.
    If any problem, I will ask you for help again.
    Thank you thank you thank you.

     
  • Igor Pavlov

    Igor Pavlov - 2017-04-12

    If 7z a works with error, try some simple commands instead.
    Windows Ce doesn't have RAM required for default 7z.
    And you must specify absolute paths for files.

    7z i
    7z b
    7z b -md18
    7z b -mm=*
    7z l \a.7z
    7z t \a.7z
    7z t \a.tar
    7z a \a.7z \1.txt -mx1
    7z a \a.tar \1.txt
    

    7zg.exe and 7z.exe use same commands.
    Try also CPP\7zip\Bundles\Fm\

     
  • twinkleshao78

    twinkleshao78 - 2017-04-13

    Hi, If I want to use 7zG but with only command line ? any solution ? how to modify source code ?

     
  • Igor Pavlov

    Igor Pavlov - 2017-04-13

    7zg.exe uses same commands:

    7zg a \a.7z \1.txt -mx1
    

    And there is additional switch "-ad" that shows dialog box.

     

Log in to post a comment.