Home All Groups Group Topic Archive Search About

Can you write this script?



Author
1 Oct 2007 3:49 PM
John
Hi all,

Can you write this batch script that when users are at network, they can run
this website http://url?

Please help.

Author
1 Oct 2007 4:55 PM
John
Simply put:

Can you write this batch or script:

ping internal system (10.1.1.1)
if available
    start myapp
else
    exit

I am stuck here and please help.
Thanks.
Show quote
"John" wrote:

> Hi all,
>
> Can you write this batch script that when users are at network, they can run
> this website http://url?
>
> Please help.
Author
1 Oct 2007 9:21 PM
Tom Lavedas
On Oct 1, 12:55 pm, John <J***@discussions.microsoft.com> wrote:
Show quote
> Simply put:
>
> Can you write this batch or script:
>
> ping internal system (10.1.1.1)
> if available
>     start myapp
> else
>     exit
>
> I am stuck here and please help.
> Thanks.
>
> "John" wrote:
> > Hi all,
>
> > Can you write this batch script that when users are at network, they can run
> > this websitehttp://url?
>
> > Please help.

ping -n 1 10.1.1.1 | find "TTL=" > nul
if not errorlevel 1 "pathspec\myapp.exe"

Tom Lavedas
===========
http://members.cox.net/tglbatch/wsh/
Author
1 Oct 2007 9:22 PM
J Ford
ping -n 1 10.1.1.1 1>nul 2>&1
if %errorlevel% equ 0 start iexplore http://www.google.com

Show quote
"John" wrote:

> Simply put:
>
> Can you write this batch or script:
>
> ping internal system (10.1.1.1)
> if available
>     start myapp
> else
>     exit
>
> I am stuck here and please help.
> Thanks.
> "John" wrote:
>
> > Hi all,
> >
> > Can you write this batch script that when users are at network, they can run
> > this website http://url?
> >
> > Please help.

AddThis Social Bookmark Button