[windows2000] Re: Multiple arguments in a batch

  • From: "Nail, Larry" <lnail@xxxxxx>
  • To: "'windows2000@xxxxxxxxxxxxx'" <windows2000@xxxxxxxxxxxxx>
  • Date: Tue, 10 Sep 2002 09:28:28 -0500

Ray,

Try out DSPING... 

http://cwashington.netreach.net/main/tools/default.asp?topic=a-m


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





> -----Original Message-----
> From: Jonathan Chan [mailto:jchan@xxxxxxxxxxxxx]

> what's happening:
> 
> you got an iterative loop starting at line 4 (or 3). unless
> someone else 
> says otherwise, i think you misused the call function, as 
> well as the for 
> loop. when call is used, your batch file (caller) is more/less put on 
> pause, and a 2nd batch file (callee) is then executed. when 
> the callee is 


That makes sense.  I've always sucked at batch stuff.  Like, I'll just keep
messing around until it ~seems~ to be working, never knowing if I'm doing
things totally wrong. 

> done running, control then goes back to the caller where it 
> left off. in 
> your case, the batch file is calling itself and starts running at the 
> checkResponse lab

> learn vbscript to do simple admin tasks. for most people, 
> it's easier to 
> read/understand/debug, and the pro's, imo, outweigh the con's. 
> functions/procedures/block programming/flow control/databases/etc.
> 

I do know VB Script.  I just didn't know of any way to ping an IP address or
get a shell response back to my script.  Like "strReturn =
objShell.Run("cmd.exe /c ping -n 1 domain.com") but it doesn't really work
that way...  The only other thing I could think to do is pipe the ping
results to a text file and read it with the file scripting object then.
Doesn't matter really.  Thanks.

Ray at work



**********************************************************************
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
**********************************************************************


==================================
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: