[windows2000] Re: Multiple arguments in a batch

  • From: "Greg Reese" <GReese@xxxxxxxxxxxxxxxx>
  • To: <windows2000@xxxxxxxxxxxxx>
  • Date: Tue, 10 Sep 2002 15:42:17 -0400

that's all you wanted to do?  Why didn't you say so.

download servers alive from www.woodstone.nu/salive

It will do that and much more.  Best of All it is free.



Greg


-----Original Message-----
From: Costanzo, Ray [mailto:rcostanzo@xxxxxxxxxxx]
Sent: Tuesday, September 10, 2002 3:41 PM
To: 'windows2000@xxxxxxxxxxxxx'
Subject: [windows2000] Re: Multiple arguments in a batch



Hi Jonathan,

This almost works.  Like, if the name can't be resolved, I'll get a =
false
return, but if the name is resolved but the response times out, I'll get =
a
true returned where I'm looking for a false.  I'll probably just suck it =
up
and pipe the output to a file.  This is only so that I can have my home
server ping my website while I'm at work and e-mail me if there's a =
problem.

Thanks,

Ray at work

> -----Original Message-----
> From: Jonathan Chan [mailto:jchan@xxxxxxxxxxxxx]=20
>=20
>=20
>=20
> At 08:06 AM 9/10/2002, you wrote:
> >I do know VB Script.  I just didn't know of any way to ping=20
> an IP address or
> >get a shell response back to my script.  Like "strReturn =3D
> >objShell.Run("cmd.exe /c ping -n 1 domain.com") but it=20
> doesn't really work
> >that way...  The only other thing I could think to do is=20
> pipe the ping
> >results to a text file and read it with the file scripting=20
> object then.
> >Doesn't matter really.  Thanks.
> >
> >Ray at work
>=20
>=20
>=20
> try this:
>=20
> Dim shell
> Set shell =3D CreateObject("WScript.Shell")
>=20
> strReturn =3D Shell.Run("ping jchan", 1, true)
> 'msgbox strReturn
>=20
> if strReturn =3D false then
>     do whatnot
> endif
>=20
>=20
>=20


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************


=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D
To Unsubscribe, set digest or vacation
mode or view archives use the below link.

http://thethin.net/win2000list.cfm

==================================
To Unsubscribe, set digest or vacation
mode or view archives use the below link.

http://thethin.net/win2000list.cfm

Other related posts: