Author Topic: move and copy  (Read 3287 times)

0 Members and 1 Guest are viewing this topic.

Offline maverick

  • Tireless poster
  • ****
  • Posts: 1052
  • Computer Solutions
    • View Profile
move and copy
« on: November 12, 2008, 04:06:47 PM »
Quote
Testing build #207 « on: October 13, 2008, 10:17:02 PM »

what's new
+ new template macros: account linked, move, copy, current downloads by user, disconnection reason

Of the new template macros shown above, can you give examples of how you would use move & copy?  Also where to put coding into template.

1. I would imagine the move would be to move file(s) from one folder to another
2. Copy to copy a file but it seems to me there should also be a paste otherwise what would you do with it after you copy it?  edit: I see - copy  file to new location but also keep original where it was.  :)
« Last Edit: November 12, 2008, 07:26:38 PM by maverick »
maverick

Offline Mars

  • Operator
  • Tireless poster
  • *****
  • Posts: 1880
    • View Profile
move and copy
« Reply #1 on: November 12, 2008, 04:55:32 PM »
Quote
Of the new template macros shown above, can you give examples of how you would use move & copy?  Also where to put coding into template.

These two macro are to be used of preferences in hfs events, if for example a file does not correspond to a criterion, it is then possible to move it in another directory, but it is not an action  easy to implement  from a browser

This is regrettably valid for many other macro

Offline maverick

  • Tireless poster
  • ****
  • Posts: 1052
  • Computer Solutions
    • View Profile
move and copy
« Reply #2 on: November 12, 2008, 06:50:38 PM »
Quote
These two macro are to be used of preferences in hfs events, if for example a file does not correspond to a criterion, it is then possible to move it in another directory, but it is not an action  easy to implement  from a browser

Then why are they called "template macros"?

A true move and/or copy/paste function would be helpful to the administrator.  We already have delete available.
« Last Edit: November 13, 2008, 05:32:51 AM by maverick »
maverick

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12949
    • View Profile
move and copy
« Reply #3 on: November 12, 2008, 06:53:15 PM »
they are the same as the 'move' and 'copy' commands you have in windows command line.

{.move|C:\autoexec.bat|C:\windows\temp\.}

Offline r][m

  • Tireless poster
  • ****
  • Posts: 347
    • View Profile
Re: move and copy
« Reply #4 on: November 12, 2008, 07:11:40 PM »
Would it be possible to insert a parameter into a macro
by using a form?
Using {.add folder | insert path via form | insert folder name via form .} ?
Then on button click a folder is named and added ?
Same with move or copy/paste.

Offline maverick

  • Tireless poster
  • ****
  • Posts: 1052
  • Computer Solutions
    • View Profile
Re: move and copy
« Reply #5 on: November 12, 2008, 07:18:48 PM »
they are the same as the 'move' and 'copy' commands you have in windows command line.

Thanks.  Tested and works OK.  Wildcards are also acceptable.
maverick

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12949
    • View Profile
Re: move and copy
« Reply #6 on: November 12, 2008, 07:35:07 PM »
Would it be possible to insert a parameter into a macro
by using a form?

yes.
for normal forms use {.?nameOfTheField.}
for method=post use {.postvar|namOfTheField.}

Offline r][m

  • Tireless poster
  • ****
  • Posts: 347
    • View Profile
Re: move and copy
« Reply #7 on: November 12, 2008, 08:50:04 PM »
Quote
for normal forms use {.?nameOfTheField.}
for method=post use {.postvar|namOfTheField.}
Thanks ! I'm not a programer, but I'll look for examples.
Maybe I can get it to work. Would be very useful. :)