Author |
Message |
Alice
Joined: 29 Jan 2015 Posts: 277
|
Posted: Mon Mar 04, 2019 9:03 pm Post subject: Trying to use Variable to create 'target' folder |
|
|
ViceVersa Pro 3.0 - Build 3001 - (64-bit) using this path as the 'Target' :
Code: | \\?\UNC\filer\ScratchPad$\Scans\<year>-<month>-<day> |
prompts to create the 'Target folder' on execution...but I have option :
'Create source/target folders if they do not exist' ticked as 'on'
is there a way to stop this prompt appearing or is this the way it works, only checking the initial folder exists, not the Variable ? |
|
Back to top |
|
|
TGRMN Software Site Admin
Joined: 10 Jan 2005 Posts: 8762
|
Posted: Wed Mar 06, 2019 1:03 am Post subject: |
|
|
Hi, unless you run the profile unattended (with the profile option 'no confirmations' or via VVEngine / command line) the confirmation will always be shown. _________________ --
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com |
|
Back to top |
|
|
Alice
Joined: 29 Jan 2015 Posts: 277
|
Posted: Sun Mar 24, 2019 2:29 pm Post subject: |
|
|
I've added this Profile to VVEngine 2.2 and it will run for the first time tonight 20:00hrs (GMT).
One thought occurred to me, I assume the profile will create a Destination folder '<year>-<month>-<day>' irrespective of whether there are any files to copy to it. I have a Date Filter applied in the Profile, so it's not certain that files will always 'qualify' (based on that filter) to be copied, but VVE will always create a folder in the 'Destination'...
Is there any way I could prevent the folder being created if there are no files to copy...or failing that, retrospectively remove any empty folders ?
From a different Thread on this forum, I wondered if your idea of 'Mirroring' an empty structure to the 'Destination' data with a Date Filter would work to remove empty folders (maybe just applies to files not folders ?), or is there something more elegant I could apply ? |
|
Back to top |
|
|
TGRMN Software Site Admin
Joined: 10 Jan 2005 Posts: 8762
|
Posted: Mon Mar 25, 2019 11:50 pm Post subject: |
|
|
Hi, are you scheduling the profile in real time or on a time schedule? Maybe could prevent the profile from being run before it actually runs with a restriction condition. _________________ --
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com |
|
Back to top |
|
|
Alice
Joined: 29 Jan 2015 Posts: 277
|
Posted: Tue Mar 26, 2019 9:48 pm Post subject: |
|
|
Thanks, is running as 'time scheduled' in VVE, but what I actually did to resolve this issue was to create a .BAT file :
Quote: | msg * /time:60 Removing empty folders...please wait for 60 seconds
ROBOCOPY "\\filer\ScratchPad$\Archive moved files (older than 14 days)" "\\filer\ScratchPad$\Archive moved files (older than 14 days)" /S /MOVE |
and 'call' this via 'Run this script after execution' in VV.
Seems to work in VVE too, ie deletes empty folders (including those created by VV Variable use '<year>-<month>-<day>') in the 'Destination' structure. |
|
Back to top |
|
|
TGRMN Software Site Admin
Joined: 10 Jan 2005 Posts: 8762
|
|
Back to top |
|
|
|