Author |
Message |
DougWA
Joined: 11 Jun 2008 Posts: 1
|
Posted: Wed Jun 11, 2008 9:25 am Post subject: Testing for a VPN with a batch file |
|
|
I am wishing to test for a VPN via a batch file but it is not working. My understanding is that if I create a batch file with the name Global_Start.BAT in the correct directory, it should be executed.
The batch file that I have written works perfectly stand alone. When it is in ViceVersa, the status window says it is running it but it does not. If I create a simple one line batch file just with a 'PAUSE' in (to test), it states it is excuting the file and then from what I can see but nothing happens - I will make the assumption that it is waiting somewhere for a key to be pressed but no command shell is opened.
Is my understanding of using a batch file incorrect? Or does anyone have a known batch file that can be posted that will test for a VPN?
I am needing the batch file to present a message to the user that the VPN is not present in a BIG message because the users are not computer literate or possible having english as a first language. My batch file displays a JPG file on error that can then display the error message in multiple languages. I do not know VB script!
Thanks for any help!
Doug |
|
Back to top |
|
|
TGRMN Software Site Admin
Joined: 10 Jan 2005 Posts: 8759
|
Posted: Wed Jun 11, 2008 11:09 am Post subject: |
|
|
Hello
Does the VPN batch have a PAUSE command?
Currently ViceVersa runs all scripts without user interface, so the PAUSE command would hang the batch script (ViceVersa is waiting for the user to press a key, but the user cannot press it)
thanks _________________ --
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com |
|
Back to top |
|
|
Logdan
Joined: 04 Jun 2008 Posts: 22
|
Posted: Thu Jun 12, 2008 3:57 pm Post subject: |
|
|
Hey DougWA,
Any chance you could post your batch file contents here? I'm trying to do something similar (have VV check for a VPN connection), and am having no luck using VB script with WMI. |
|
Back to top |
|
|
|