Author |
Message |
mjk
Joined: 22 Oct 2007 Posts: 1 Location: Austria
|
Posted: Mon Oct 22, 2007 2:15 pm Post subject: Return Value of Start Script |
|
|
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 (--> 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: 8763
|
Posted: Tue Oct 23, 2007 1:09 am Post subject: |
|
|
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 |
|
|
|
|
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
|