I always wanted to add a Tar function to the Right Click option for Directories. Getting the option to the shell is the easy part, but my problem is passing the parameter needed to tar.exe. Here what i got going on so far: Added tar.exe to system32, so it's easy to call. Added Tar to the Right Click for the Directory Shell, Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Directory\shell\Tar] [HKEY_CLASSES_ROOT\Directory\shell\Tar\command] @="tar.exe -C %1-cfv %1.tar %1" But this isn't going to work, as %1 sends the full path. Seems i need a .bat to call tar.exe with the right parameter. So for instance %1=C:\somedir\myfiles The right commands to call tar.exe from a diferent directory would be like this. tar.exe -C C:\somedir -cfv C:\somedir\myfiles.tar myfiles So it looks like I need 3 variables %a needs to get the path minus the last directory from %1 ie:C:\somedir for the -C switch from %1 %b needs to get the last directory from %1 only. ie: myfiles directory out of %1 And %1.tar should work for the for the output file So the final command would be like tar.exe -C %a -vcf %1.tar %b Then i can just use this for the Right Click for the Directory Shell Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Directory\shell\Tar] [HKEY_CLASSES_ROOT\Directory\shell\Tar\command] @="tar.bat %1" I'm just alittle lost on how to get those variables for the .bat. I get this figured out then the extraction part should be pretty easy. Thanks in advance