02-28-2017, 07:06 PM
I use the following code to extract the file, the result is failed, the hint message is behind, where is the wrong?
hock:
Macro Macro2
---------------------------------------------------------------------------------------------------------------------------------------
7-Zip [32] 16.04 : Copyright © 1999-2016 Igor Pavlov : 2016-10-04
Scanning the drive for archives:
1 file, 87527 bytes (86 KiB)
Extracting archive: C:\Users\Administrator\Desktop\test\file.7z
--
Path = C:\Users\Administrator\Desktop\test\file.7z
Type = 7z
Physical Size = 87527
Headers Size = 122
Method = LZMA2:384k
Solid = -
Blocks = 1
No files to process
Everything is Ok
Files: 0
Size: 0
Compressed: 87527
![Confused Confused](https://www.libreautomate.com/forum/images/smilies/confused.png)
Macro Macro2
str sevenZip.expandpath("$qm$\7z.exe")
str file="$desktop$\test"
str zfile="$desktop$\test\file.7z"
file.expandpath
zfile.expandpath
RunConsole2(F"''{sevenZip}'' e ''{zfile}'' ''{file}''")
---------------------------------------------------------------------------------------------------------------------------------------
7-Zip [32] 16.04 : Copyright © 1999-2016 Igor Pavlov : 2016-10-04
Scanning the drive for archives:
1 file, 87527 bytes (86 KiB)
Extracting archive: C:\Users\Administrator\Desktop\test\file.7z
--
Path = C:\Users\Administrator\Desktop\test\file.7z
Type = 7z
Physical Size = 87527
Headers Size = 122
Method = LZMA2:384k
Solid = -
Blocks = 1
No files to process
Everything is Ok
Files: 0
Size: 0
Compressed: 87527