Forum Index  ViceVersa HOME         FAQ and Knowledge Base

 FAQForum FAQ   SearchSearch Forum  RegisterRegister 
 ProfileProfile   Log inLog in 

Display 'Please wait' msg during 'Run scripts before comp..'

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



Joined: 29 Jan 2015
Posts: 277

PostPosted: Thu Mar 17, 2016 9:38 pm    Post subject: Display 'Please wait' msg during 'Run scripts before comp..' Reply with quote

[ ViceVersa pro 2.5 - Build 2516 - (64-bit) with Windows 10 Pro ]

Hi, I have a group of graphic designers in my organisation who create and organise (sort) graphics files using a special piece of software. This software allows a 'drag and drop' then 'rename' visual view to arrange files linked to its own internal database, which plays havoc with the NTFS file system. So file '3.dwg' could in fact hold completely different data (to the copy on the server) by the time they have finished visually arranging and then renaming the files within the special software.

My workaround to backup these changes at the end of each day and ensure that 'what they see is what they get' the next day...is to completely delete all files in the 'Target' (Destination) server folder using VV - 'Run scripts before comparison' triggering a .bat to delete all files, then run a full 'Mirror' copy :

Code:
RD S:\-Serv~1\Utils\Image /S /Q
rem ping command waits 3 seconds to allow 'S:\-Serv~1\Utils\Image' to complete
ping localhost -n 3 > nul
exit



During the time that the .bat is deleting files (measured in thousands) a Windows 'little blue spinning wheel' displays before control is returned to ViceVersa to run the file copy. Unfortunately, staff tend to turn the PC off as they think it has 'hung' (blue wheel spinning) before the .bat completes...

Simple question, is there a way to display a 'Please wait....' message on screen as VV executes a 'Run scripts before comparison' command....?


Tks



Alice
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8758

PostPosted: Mon Mar 21, 2016 1:18 am    Post subject: Reply with quote

Hi Alice,

Is the task run hidden or via the VVEngine?
If not , then here are some options:

http://stackoverflow.com/questions/12514475/how-can-you-create-pop-up-messages-in-a-batch-script

thanks
--
www.tgrmn.com
_________________
--
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com
Back to top
Alice



Joined: 29 Jan 2015
Posts: 277

PostPosted: Wed Mar 23, 2016 10:35 pm    Post subject: Reply with quote

Not sure I know what you mean Confused

The .bat file is called via ViceVersa pro 2.5 - Build 2516 - (64-bit) (not Engine) :

[ File ] / [ Change Profile Settings...] / 'Execution' / 'Advanced Settings' / 'Custom Scripts' / 'Run scripts before comparison'
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8758

PostPosted: Sun Mar 27, 2016 5:38 am    Post subject: Reply with quote

Hi, the issue is that if you show a popup but run the profile silently / hidden via VVScheduler or VVEngine the profile could stop forever waiting for user input...
_________________
--
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com
Back to top
Alice



Joined: 29 Jan 2015
Posts: 277

PostPosted: Mon Mar 28, 2016 12:24 pm    Post subject: Reply with quote

Hi and thanks for your comments and guidance.

I used the command msg under Windows 10 Pro with a /time:<Seconds> parameter in a .bat file as follows :

Code:

msg Admin /time:25 Do not turn this PC off, 'copy job' loading within 30 seconds...
RD S:\-Serv~1\Utils\Image /S /Q
rem ping command waits 3 seconds to allow 'S:\-Serv~1\Utils\Image' to complete
ping localhost -n 3 > nul
exit



the custom message displays for 25 seconds and then disappears, at which point the Windows 'little blue spinning wheel' also disappears and the VV Pro job continues with the actual copy, a bit crude, but it seems to be accepted by the staff ! Smile

Tks


Alice
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8758

PostPosted: Mon Mar 28, 2016 10:18 pm    Post subject: Reply with quote

Smartly done! Cool
_________________
--
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: