Forum Index  ViceVersa HOME         FAQ and Knowledge Base

 FAQForum FAQ   SearchSearch Forum  RegisterRegister 
 ProfileProfile   Log inLog in 

Trying to use Variable to create 'target' folder

 
Post new topic   Reply to topic     Forum Index -> Support
Author Message
Alice



Joined: 29 Jan 2015
Posts: 277

PostPosted: Mon Mar 04, 2019 9:03 pm    Post subject: Trying to use Variable to create 'target' folder Reply with quote

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

PostPosted: Wed Mar 06, 2019 1:03 am    Post subject: Reply with quote

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

PostPosted: Sun Mar 24, 2019 2:29 pm    Post subject: Reply with quote

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

PostPosted: Mon Mar 25, 2019 11:50 pm    Post subject: Reply with quote

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

PostPosted: Tue Mar 26, 2019 9:48 pm    Post subject: Reply with quote

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

PostPosted: Tue Mar 26, 2019 10:37 pm    Post subject: Reply with quote

Cool nice!
_________________
--
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com
Back to top
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Support All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group
Copyright © TGRMN Software. TGRMN Software products: