View Full Version : Is it possible to make a archive-extracting script in thinbasic?
gamegamer
10-12-2010, 23:41
Im just wondering if its possible to extract files from a archive such as zip files using a script in thinbaisc. If its possible, I'll like to know how its done ;)
ErosOlmi
11-12-2010, 18:55
I'm sorry but at the moment thinBasic has no native commands that handle ZIP files.
Michael Clease
12-12-2010, 03:35
I cheat and shell execute to 7zip command line and add the 7zip executable file to the bundle.
That's a clever idea Michael.
Michael Clease
13-12-2010, 00:15
Just thought I would show how I use 7zip.
#BUNDLE File Once "7za.exe"
OS_Shell("7za.exe u -tzip"+$SPC+Chr$(34)+InputFileName+Chr$(34)+$SPC+Chr$(34)+OutputFileName+Chr$(34),%OS_WNDSTYLE_NORMAL,%OS_SHELL_SYNC)
gamegamer
13-12-2010, 00:19
ok. thanks for the help. i kinda figured i had to use 7z command line anyway.