Forum Index  ViceVersa HOME         FAQ and Knowledge Base

 FAQForum FAQ   SearchSearch Forum  RegisterRegister 
 ProfileProfile   Log inLog in 

Vice Versa Command Line

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



Joined: 02 Jun 2008
Posts: 2

PostPosted: Mon Jun 02, 2008 8:31 pm    Post subject: Vice Versa Command Line Reply with quote

We have a VBSCRIPT that is run on login here and want to use that to start ViceVersa on login to do a synchronization (without a profile to keep it generic for all users).

There are two pending issues with this, though.

1. You can not set file types to include or exclude from the command line. Is there a way to pass file extensions like *.avi; *.exe to the program? Or link it to an exclude/include text file?

2. When you try to use the /Exec:1 switch, you will always get an error that there is no tracking database. It seems you can only use synchronization if you have a profile set up. Can this be resolved?

For reference, the function that starts Vice Versa
Code:

Function RunViceVersaBackup()
   If ( IsProgramInstalled("ViceVersa", 32) = 0 ) Then
      If ( IsProgramInstalled("ViceVersa", 64) = 0 ) Then
         Exit Function
      End If
   End If
   
   source_dir = ShellENV("USERPROFILE")
   target_dir = "H:\BACKUP_NO_TOUCH\"&UserObj.Name
      
   arguments = "/source:"""&source_dir&""" "
   arguments = arguments&"/target:"""&target_dir&""" "
      
   arguments = arguments&"/hiddenautoexec "
   arguments = arguments&"/wait "
   arguments = arguments&"/showtrayicon "
   arguments = arguments&"/createfolders "
   arguments = arguments&"/incsub "      
   arguments = arguments&"/comptype:0 "      
   arguments = arguments&"/ign2secs "      
   arguments = arguments&"/exec:2 "      
   arguments = arguments&"/log:""H:\ViceVersaLog.txt"" "
      
   arguments = arguments&"/speed:25 "
   
   WSHShell.Exec "C:\Program Files\ViceVersa Pro 2\viceversa.exe "&arguments
End Function
[/code]
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8763

PostPosted: Tue Jun 03, 2008 2:25 am    Post subject: Reply with quote

Hello

I think it would be better to define a generic profile and use that profile on the command line , instead of using the parms, because the command line does not support all options.

You could define a generic profile with
<USERPROFILE> as source (literally use <USERPROFILE> in the source)
H:\BACKUP_NO_TOUCH\<USER> in the target.

The use the profile name on the command line (see ViceVersa help for command line options)

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



Joined: 02 Jun 2008
Posts: 2

PostPosted: Tue Jun 03, 2008 2:47 pm    Post subject: Reply with quote

Thanks!

What about the tracking database in the generic profile?
Could a future build support something like <USERPROFILE>\vvdb.tdb and automatically create it from the command line? Or is there already a work-around?
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8763

PostPosted: Wed Jun 04, 2008 1:46 am    Post subject: Reply with quote

Hi, we plan to add some variables for the tracking db in future releases. Currently the database is stored in the application data folder. thanks
_________________
--
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: