rejetto forum

how can i move a file into a special folder?Ths

funjay · 12 · 3566

0 Members and 1 Guest are viewing this topic.

Offline funjay

  • Occasional poster
  • *
    • Posts: 21
    • View Profile
Hi, i have a question about move, for example, there are many files and B folder in A folder, can i select a file and click a button ,and the result is this file is moved in B folder? thanks.
the files can only be moved into the lower level folder in A folder.



Offline AvvA

  • Tireless poster
  • ****
    • Posts: 135
    • View Profile
Hi :)

This will require that you put your nose in the macros : http://www.rejetto.com/wiki/index.php/HFS:_Template_macros

I suppose that you'll have to add a button in the html template, and define that when clicked it moves all checked files to a predefine folder, or may be best to include also an input field to tell where to move the files.

This will require some HTML knowledge and motivation to learn a bit how macros work, as it's not already coded...

You may also automate the file move, by including a filesize check upon all files in a folder, and above a certain size move the oldest ones in a pre-define folder, in exemple.


Good luck with this ;)


Offline funjay

  • Occasional poster
  • *
    • Posts: 21
    • View Profile
it seems complex for me, but anyway, thank you for your hints.


Offline funjay

  • Occasional poster
  • *
    • Posts: 21
    • View Profile
 
Code: [Select]
{.if|{.get|can delete.}|
   ........................................... // [font=Verdana]what should i write here?[/font]
<input  type='submit' name='obsoletefile' value='Obsolete Files' >
  /if.}

[special:begin]
{.if|{.and| {.get|can delete.} | {.postvar|obsoletefile.} .}|{:
{.move|%item-resource%|%folder-resource%\obsolete\%item-name%.}

:}/if.}



Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile

Offline funjay

  • Occasional poster
  • *
    • Posts: 21
    • View Profile
yes,  :) for example, ther are many files and a folder named "obsolete" in fold A
when i selected one file, and pressed button "obsolete" ,this file would be moved in fold "obselete"
can it be true? thanks.


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
yes, it's possible, but it takes time to make it, and at the moment i have very little.
i hope someone else will help you


Offline funjay

  • Occasional poster
  • *
    • Posts: 21
    • View Profile

Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
no, sorry.
personal needs must be solved with "scripts".
the script you need can be already made with current version, there's no need for an upgrade.


Offline De-M-oN

  • Occasional poster
  • *
    • Posts: 20
    • View Profile
Is it also possible to delete files with a button?
To Rename files etc?


Offline kaler

  • Occasional poster
  • *
    • Posts: 94
    • View Profile
jeah its possibe.. PN me.. thanks..


ja es ist möglich schreibe mich einfach an, ich kann so gegen 16 uhr dir antwort geben...