Please Notice: For fastest support from PowerArchiver team, contact us via our Support page

PACL v6.01 - command prompt corrupted when used with '-unicode' switch?



  • Hi,

    Summary: Powerarchiver with ‘-unicode’ mode is corrupting the environment and no batch files could be executed after PA run

    How to reproduce:
    1. I have a .bat file C:\test.bat which has the following content

    @echo off
    echo Test > C:\testout.txt

    2. I open a command prompt and run c:\test.bat. C:\testout.txt is created.

    3. delete the file

    4. run PACL in unicode mode in the same command shell as below:

    D:\ConeXware\PowerArchive\6.01\PAEXT.exe -q -c -v -r -spassoword -unicode d:\archive.tar.Z

    • this lists the archive.

    5. now run c:\test.bat in the same command prompt

    • c:\testout.txt is not created

    This is the issue! Even though C:\test.bat returns a success, batch file is actually not executed. This issue does not occur if -unicode switch is not used.

    What would be the workaround for this? We are the registered users of PACL and recently upgraded to PACL6.01. Please reply at the earliest as this issue is affecting release of our product.

    Thanks,
    Jithesh


  • Alpha Testers

    Hi!

    @jithesh:

    D:\ConeXware\PowerArchive\6.01\PAEXT.exe -q -c -v -r -spassoword -unicode d:\archive.tar.Z

    • this lists the archive.

    5. now run c:\test.bat in the same command prompt

    • c:\testout.txt is not created

    The same thing happends for me. One interesting thing is that after I have list the archive I can’t even use the dir command in CMD.

    C:\PACL>dir
     Volume in drive C is System
     Volume Serial Number is 3466-FC25
    
     Directory of C:\PACL
    
    2010-06-04  08:35    
    
    <dir>          .
    2010-06-04  08:35    
    
    <dir>          ..
    The system cannot write to the specified device.
    
    C:\PACL>
    
    If it can't write to the specified device then it explains why the txt file isn't created. I don't know why this happends, but I can confirm that I got the same error as you have.
    
    Kind Regards
    Micke</dir>
    
    </dir>
    
    

  • conexware

    Did you start cmd.exe with /u switch? Without it, cmd.exe is not running with unicode support, so then PACL can not use unicode either.


  • Alpha Testers

    Hi!
    I have tested it with the /u switch and now the bat file write the informaton correct to the textfile.

    I still get the same error when running the dir comand after list the contents of the archive. It works if I use the dir /w, but only dir gets the same error message. It’s not important to me since it works when I use the dir /w instead.

    Thanks spwolf for the help.

    Kind Regards
    Micke



  • I tried opening with /u switch but that didnt work either. C:\testout.txt is not created when running the batch file after running paext.exe with ‘-unicode’ in the command prompt opened with /U switch.

    @Micke: ‘dir’ command is always working regardless of -unicode switch for me. No issues with dir command at my side. Please check if it is because of write permission for PACL in a particular directory.

    Thanks,
    Jithesh


  • Alpha Testers

    @jithesh:

    I tried opening with /u switch but that didnt work either. C:\testout.txt is not created when running the batch file after running paext.exe with ‘-unicode’ in the command prompt opened with /U switch.

    Have you tried change the path to where the testout.txt is created? Instead of writning to the root of C: try write to a subfolder instead.

    I have tested this on Windows 7 and it’s working for me when I open a cmd window using the /u switch like this:

    cmd /u
    
    

    The difference for me is that I write the testout.txt to C:\Programs\Test which is a folder I have write access to.

    @jithesh:

    @Micke: ‘dir’ command is always working regardless of -unicode switch for me. No issues with dir command at my side. Please check if it is because of write permission for PACL in a particular directory.

    Thanks for the information, I don’t know why I get this problem with the dir command, but I know I have write access to the folder, because the textfile is created even after running PAEXT.

    My only suggestion to you is that you try change the path in the bat folder to a subfolder instead of the root folder.

    Kind Regards
    Micke


Log in to reply
 

Looks like your connection to PowerArchiver Forums was lost, please wait while we try to reconnect.