Announcement

Collapse
No announcement yet.

How to move only when moving files without moving folders?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Aaron
    replied
    Hello,

    Moveto path:base should do what you are looking for, but only supports the path up to the defined base folders: files at the root of \\ip\idoc\ would not include \\ip\idoc\ as part of their path.

    The moveto command does work with the selection, so you would need to perform the select command before the moveto command.

    I would suggest testing with test folders first, since script will not preview before committing actions, and BC4 does not support Undo while testing different script options/commands.

    Leave a comment:


  • How to move only when moving files without moving folders?

    I need to move all the files in one folder to another folder, but what do I need to do to keep the folder structure unchanged?

    I tested that only sync can achieve subfolder synchronization, but how to delete the source file?

    Code:
    log verbose "C:\My Log.txt"
    
    load "\\*.*.*.*\idoc" "C:\Infile"
    filter "-*.log;-*.gsl;-*._gs;"
    
    
    #moveto left path:base C:\Infile
    
    sync update:left->right
    
    select left.exact
    moveto C:\backup\
Working...
X