AveYo / Compressed2TXT

File(s)/Folder(s) "Send to" menu .bat ascii encoder with optional password and makecab lzx compression
MIT License
219 stars 33 forks source link

BAT91 not working #7

Closed Dunkelicht closed 2 years ago

Dunkelicht commented 3 years ago

for a large file more than 3mb, it said:

2021-11-04_01-27-43

Neither works for win7 or win10.

but for BAT85, it works.

I need to paste to somewhere do not accept %*, so how do I fix it?

Thank you all!

`Unable to find type [BAT91]: make sure that the assembly containing this type is loaded. At line:8 char:56

Microsoft (R) File Expansion Utility Version 6.1.7600.16385 Copyright (c) Microsoft Corporation. All rights reserved.

Can't open input file: 1.

Remove-Item : Cannot find path 'C:_\7z\1' because it does not exist. At line:8 char:107

Dunkelicht commented 3 years ago

update: 6.1 works fine for file size 320k, while 6.3 does not, I did not know why and how to debug it....

500kb for 6.1 shows: 6 1notworking

Dunkelicht commented 3 years ago

Another bug, if compressed target does not exit, this script may dell this user all files listed in C:\users , it exits in 6.1. I did not test for 6.3. Be cautions.

Dunkelicht commented 3 years ago

some files could be txted, some not...

AveYo commented 3 years ago

There must be something wrong with the configuration you're using, because none of the issues you've mentioned have ever been reported, and the script has been working for huge files just fine. Maybe it's a copy-paste error? did you use Code - Download ZIP button in github?

In any case, in v6.4 I've changed a few things to hopefully prevent your issues

Dunkelicht commented 3 years ago

Thanks a lot for replying and updating!

As it crashes randomly, I think it is the encode reason. I all use BAT85 to prevent char like (*%.

What I try to encode file is a PDF: https://support.industry.siemens.com/cs/attachments/109479728/109479728_LGF_TIAV16_DOC_V5_0_0_en.pdf refer to : https://support.industry.siemens.com/cs/ww/en/view/109479728

I tried when region and language setting to Non-English like below and it still crashes...

2021-11-08_09-22-37

2021-11-08_09-22-06

2021-11-08_09-09-54

In 6.4 the problem exists...

2021-11-08_09-11-56

Thanks a lot for updating!

AveYo commented 2 years ago

v6.5 at least fixed the issue with BAT85 (because BAT91 worked fine, that's what I personally use a lot)

Dunkelicht commented 2 years ago

v6.5 at least fixed the issue with BAT85 (because BAT91 worked fine, that's what I personally use a lot)

Thanks again for updating!

In windows 7 there is a also warning, but the BAT85 is working now.

I will test some other file as far as I could.

v6 5 some warinning

AveYo commented 2 years ago

Yeah, no idea why that warning, I can't replicate it in my windows 7 vm
It's related to the cleanup part, so not critical (if you get leftover random-named folders you can clean them up manually)

Dunkelicht commented 2 years ago

Yeah, no idea why that warning, I can't replicate it in my windows 7 vm It's related to the cleanup part, so not critical (if you get leftover random-named folders you can clean them up manually)

Thanks for everything, please consider some protection for NULL input, it was dangerous, delete all C:\Users[UserName].

This issue could be closed by now.

AveYo commented 2 years ago

the way SendTo works the input can't be null, isn't it?
but I do test anyway:
if (!(test-path -lit $($arg[0].Value.Trim('"')))) {write-host "ERROR! path not found" -fore Yellow; timeout -1; return}