I suspected that might be the case. I guess it doesn't matter if one has a script assigned to a button
I altered what we discussed before
http://forum.multicommander.com/forum/index.php/topic,1200.0.html to use the script unpack command & being able to call the unpack function with these options works very well.
// get & extract zips
@var $root = GetSourcePath();
@var $arrFiles = FindFiles( $root + "*.zip");
@var $count = arrayCount($arrFiles);
@var $zipFiles = "";
@var $zip;
@var $n1;
// Create ; separated list with all zip files to unpack
for( $n1 = 0; $n1 < $count ; $n1++ )
{
$zip = $arrFiles[ $n1];
$zipFiles += $zip;
$zipFiles += ";";
UnpackFile( $zip, $root, "*.*" , "OVERWRITEALL, USEEXISTINGQUEUE" );
}
Thanks for expanding the scripting side, as I slowly learn it, it gets more & more useful.
With
TranslateEnvString is this only for returning the OS environment or can it be used with other things. I am trying to imagine how it can be used...