Forum Index  ViceVersa HOME         FAQ and Knowledge Base

 FAQForum FAQ   SearchSearch Forum  RegisterRegister 
 ProfileProfile   Log inLog in 

Return Value of Start Script

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



Joined: 22 Oct 2007
Posts: 1
Location: Austria

PostPosted: Mon Oct 22, 2007 2:15 pm    Post subject: Return Value of Start Script Reply with quote

Hi,
I currently evaluating ViceVersa Pro + VVengine.
My task is to sync to dislocated server (connected via VPN).

So my first action before synchronizing should be the mapping of a network drive.

I tried this using the global_start.cmd:
@echo off
@:Anmeldescript

net use y: /d /y
net use y: \\10.10.14.1\Produktion skdl /USER:skdl
%VV_EXIT_CODE%=0

The last line was a test for me, but with or without the last line the return code is always 2 Sad (--> the profile will not start).
(the drive mapping was OK after running the script)

What is the right syntax for the start script?

2. Question: is it possible to start a VPN tunnel with a start script?

If I found a solution for these questions, I will purchase ViceVersa an VV engine, because it looks very stable and has the functionality I need for my task.
Many thanks in advance
_________________
Regards,

Manfred
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8759

PostPosted: Tue Oct 23, 2007 1:09 am    Post subject: Reply with quote

Hi,

at the end of the script use:

exit /b 0

where 0 is the error code,
instead of %VV_EXIT_CODE%=0


EXIT /B is available in Windows 2000 and later versions only

Quote:
2. Question: is it possible to start a VPN tunnel with a start script?


Yes that is possible.

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: