it should work for 6.x and probably 5.9 It downlaods to the root directory, but to change it you can make two modifications.

1. In the on sockopen even, where the if ($isfile(...)) .remove ... Add a path just after the .remove like:
if ($isfile(...)) .remove blah -becomes- if ($isfile(...)) .remove dir\ $+ blah
2. On the /bwrite %file, change it to /bwrite dir\ $+ %file


-KingTomato