This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Unrar/unzip/tar

Help for those learning Tcl or writing their own scripts.
Post Reply
o
oups
Voice
Posts: 1
Joined: Tue Aug 16, 2016 1:04 am

Unrar/unzip/tar

Post by oups »

hi
i search a solution for my script.
i would like Unrar/unzip/tar into a specific folder when a command is write in my chan.

$isy_(unrar_data) : my folder

Code: Select all

set rarvar [glob -directory $ndir *.rar]
		set rarfile [string trim [lindex [split $rarvar "/"] end]]	
		catch { exec unrar x $ndir/$rarfile $isy_(unrar_data)/} data
but i don t understand why he doesn't work.
You can help me please
Post Reply