Enable dropping a file onto a Ruby script

后端 未结 4 1048
轮回少年
轮回少年 2020-12-18 11:34

I\'m creating a small ruby script to resize images and save them in a specified directory. I\'d like the application to be as transparent as possible.

Is it possible

4条回答
  •  既然无缘
    2020-12-18 11:51

    Platform dependend, so here for windowsusers and reference only. Save the following to a .reg file and load it by doublecliking it, tested on Windows Vista and 7

    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\rbfile\ShellEx\DropHandler]
    @="{86C86720-42A0-1069-A2E8-08002B30309D}"
    
    [HKEY_CLASSES_ROOT\rbwfile\ShellEx\DropHandler]
    @="{86C86720-42A0-1069-A2E8-08002B30309D}"
    
    [HKEY_CLASSES_ROOT\RubyFile\ShellEx\DropHandler]
    @="{86C86720-42A0-1069-A2E8-08002B30309D}"
    
    [HKEY_CLASSES_ROOT\RubyWFile\ShellEx\DropHandler]
    @="{86C86720-42A0-1069-A2E8-08002B30309D}"
    

提交回复
热议问题