PowerArchiver Home


Go Back   PowerArchiver Forums > PowerArchiver Command Line (PACL) > Tech Support

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-01-2010, 07:25 AM
jithesh jithesh is offline
Senior Members
 
Join Date: Jun 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #2  
Old 06-04-2010, 01:40 AM
Micke's Avatar
Micke Micke is offline
PA Super User
 
Join Date: Feb 2010
Location: Sweden
Posts: 131
Thanks: 11
Thanked 52 Times in 40 Posts
Hi!

Quote:
Originally Posted by jithesh View Post
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.

Code:
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
Reply With Quote
  #3  
Old 06-04-2010, 04:09 AM
spwolf's Avatar
spwolf spwolf is offline
Administrator
 
Join Date: Jun 2001
Posts: 7,820
Thanks: 676
Thanked 207 Times in 192 Posts
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.
__________________
ConeXware, Inc.
latest PA release info on Facebook, Twitter | Follow us and win free PowerArchiver.
Reply With Quote
The Following User Says Thank You to spwolf For This Useful Post:
Micke (06-04-2010)
  #4  
Old 06-04-2010, 04:28 AM
Micke's Avatar
Micke Micke is offline
PA Super User
 
Join Date: Feb 2010
Location: Sweden
Posts: 131
Thanks: 11
Thanked 52 Times in 40 Posts
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
Reply With Quote
  #5  
Old 06-04-2010, 08:16 AM
jithesh jithesh is offline
Senior Members
 
Join Date: Jun 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
cmd /u also did not work!

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
Reply With Quote
  #6  
Old 07-28-2010, 02:21 PM
Micke's Avatar
Micke Micke is offline
PA Super User
 
Join Date: Feb 2010
Location: Sweden
Posts: 131
Thanks: 11
Thanked 52 Times in 40 Posts
Quote:
Originally Posted by jithesh View Post
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:

Code:
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.

Quote:
Originally Posted by jithesh View Post
@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
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
command prompt issues (b3) Linkster Tech Support 11 07-18-2009 07:10 PM
I guess it's Command Prompt guido Tech Support 5 04-17-2009 08:12 AM
Compress by Command Prompt vman Tech Support 3 07-17-2006 08:00 AM


All times are GMT -5. The time now is 11:07 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.