PC Review


Reply
Thread Tools Rate Thread

cmd script problem

 
 
BigMan
Guest
Posts: n/a
 
      14th Nov 2004
I've written a bat file of a single line: start "test" ping
www.microsoft.com. A strange thing happens when I execute it on my WinXP Pro
SP2 (with auto updates on) - a lot of cmd windows get open and the system
hangs up. What's the problem and why cannot I start a ping in a separate
window?



 
Reply With Quote
 
 
 
 
Paul R. Sadowski [MVP]
Guest
Posts: n/a
 
      14th Nov 2004
Hello, BigMan:
On Sun, 14 Nov 2004 10:11:14 +0200: you wrote...

B> I've written a bat file of a single line: start "test" ping
B> www.microsoft.com. A strange thing happens when I execute it on my WinXP
B> Pro SP2 (with auto updates on) - a lot of cmd windows get open and the
B> system hangs up. What's the problem and why cannot I start a ping in a
B> separate window?
B>

The problem is that you called the file ping.bat or ping.cmd. The batch file
then is calling itself over and over again. EIther change the name or change
the line in the batch to
start "test" ping.exe www.microsoft.com
or
start "test" %WINDIR%\System32\ping www.microsoft.com

Btw, if you are actually using www.microsoft.com, it's not pingable. They
drop ICMP packets to reduce DoS attacks.

Regards, Paul R. Sadowski [MVP].


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
BUG: Script blocking strips script parameters during script authorization Jonathan K. Shay Spyware Announcements 3 2nd May 2005 06:18 PM
Script problem =?Utf-8?B?ZWdkY2x0ZA==?= Windows XP Internet Explorer 2 9th Mar 2005 03:31 PM
Problem in executing a script on the server side ! Script found but nothing executed ! Cédric Rossé Microsoft ASP .NET 1 9th Nov 2004 09:43 AM
Script problem Wayne W Windows XP Internet Explorer 3 26th Apr 2004 04:09 PM
Script Problem. =?Utf-8?B?TWljaGFlbA==?= Microsoft Frontpage 2 26th Jan 2004 03:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:46 PM.