Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Windows 98 Networking

Single Batch File

Reply
 
Thread Tools Display Modes
  #1  
Old 10-11-2007, 09:09 AM
Default Single Batch File



i have to run following ping command for 9 ips.
> ping 192.168.1.1 -t
> ping 192.168.1.4 -t
> ping 192.168.1.7 -t
> ping 192.168.1.8 -t
> ping 192.168.1.15 -t
> ping 192.168.1.16 -t
> ping 192.168.1.37 -t
> ping 192.168.1.38 -t
> ping 192.168.1.49 -t



> is there any process by which I dont have to type each time in command
> prompt ot run every ping. can we create any batch file..
>
> any help................



Vis-MCSA
Reply With Quote
  #2  
Old 10-11-2007, 07:22 PM
Don Phillipson
Guest
 
Posts: n/a
Default Re: Single Batch File

"Vis-MCSA" <(E-Mail Removed)> wrote in message
news:4DB16E44-08D4-49DE-8610-(E-Mail Removed)...
> i have to run following ping command for 9 ips.
> > ping 192.168.1.1 -t
> > ping 192.168.1.4 -t
> > ping 192.168.1.7 -t
> > ping 192.168.1.8 -t
> > ping 192.168.1.15 -t
> > ping 192.168.1.16 -t
> > ping 192.168.1.37 -t
> > ping 192.168.1.38 -t
> > ping 192.168.1.49 -t

>
>
> > is there any process by which I dont have to type each time in command
> > prompt ot run every ping. can we create any batch file..


If you insert a line between each of these commands
with the single command
pause
the BATch will pause after each PING and require a single CR
before it continues with the next PING.

--
Don Phillipson
Carlsbad Springs
(Ottawa, Canada)


Reply With Quote
  #3  
Old 10-12-2007, 05:37 AM
Vis-MCSA
Guest
 
Posts: n/a
Default Re: Single Batch File

Hi,

Thanks For quick reply but I want a batch file which all pings will open in
separate window with Horizontally......Thanks in Advance

Best Regards,

Vishal



"Don Phillipson" wrote:

> "Vis-MCSA" <(E-Mail Removed)> wrote in message
> news:4DB16E44-08D4-49DE-8610-(E-Mail Removed)...
> > i have to run following ping command for 9 ips.
> > > ping 192.168.1.1 -t
> > > ping 192.168.1.4 -t
> > > ping 192.168.1.7 -t
> > > ping 192.168.1.8 -t
> > > ping 192.168.1.15 -t
> > > ping 192.168.1.16 -t
> > > ping 192.168.1.37 -t
> > > ping 192.168.1.38 -t
> > > ping 192.168.1.49 -t

> >
> >
> > > is there any process by which I dont have to type each time in command
> > > prompt ot run every ping. can we create any batch file..

>
> If you insert a line between each of these commands
> with the single command
> pause
> the BATch will pause after each PING and require a single CR
> before it continues with the next PING.
>
> --
> Don Phillipson
> Carlsbad Springs
> (Ottawa, Canada)
>
>
>

Reply With Quote
  #4  
Old 10-12-2007, 08:21 AM
R.Wieser
Guest
 
Posts: n/a
Default Re: Single Batch File


Vis-MCSA <(E-Mail Removed)> schreef in berichtnieuws
4DB16E44-08D4-49DE-8610-(E-Mail Removed)...

[snip]
> > is there any process by which I dont have to type each time in
> > command prompt ot run every ping. can we create any batch file..


You could just write those lines into a text-file and name it "PingAll.bat"
....

Regards,
Rudy Wieser



Reply With Quote
  #5  
Old 10-12-2007, 09:15 AM
Vishal
Guest
 
Posts: n/a
Default Re: Single Batch File

I creat a batch file but it is showing in Same window I want Separate windows
for every ping. Please help........Thanks

Note : First I creat a Notepad file with Name "PingAll.bat"
in notepad file I type
ping 192.168.1.1
ping 192.168.1.4
ping 192.168.1.7
ping 192.168.1.8
ping 192.168.1.15
ping 192.168.1.16
ping 192.168.1.37
ping 192.168.1.38
ping 192.168.1.49

All IPs are pinging but in same window ......is there any corrections
...please tell me....


"R.Wieser" wrote:

>
> Vis-MCSA <(E-Mail Removed)> schreef in berichtnieuws
> 4DB16E44-08D4-49DE-8610-(E-Mail Removed)...
>
> [snip]
> > > is there any process by which I dont have to type each time in
> > > command prompt ot run every ping. can we create any batch file..

>
> You could just write those lines into a text-file and name it "PingAll.bat"
> ....
>
> Regards,
> Rudy Wieser
>
>
>
>

Reply With Quote
  #6  
Old 10-12-2007, 04:57 PM
Don Phillipson
Guest
 
Posts: n/a
Default Re: Single Batch File

"Vis-MCSA" <(E-Mail Removed)> wrote in message
news4B3AB3C-22C0-4911-80F5-(E-Mail Removed)...

> Thanks For quick reply but I want a batch file which all pings will open

in
> separate window with Horizontally......Thanks in Advance


Creation of separate windows is a Windows
function. BATch files are a DOS function.
I don't think you can execute a Windows
function from a DOS prompt.

--
Don Phillipson
Carlsbad Springs
(Ottawa, Canada)


Reply With Quote
  #7  
Old 10-13-2007, 12:55 AM
R.Wieser
Guest
 
Posts: n/a
Default Re: Single Batch File

Vishal <(E-Mail Removed)> schreef in berichtnieuws
7A5D168F-F0E4-4829-8C1D-(E-Mail Removed)...
> I creat a batch file but it is showing in Same window I want Separate

windows
> for every ping. Please help........Thanks


I'm afraid its as "Don Phillipson" allready mentioned : In Win98 a
batch-file is a function of the command-interpreter of the dos-box its in,
and it cannot (really) interact with its parent, Windows.

Maybe you should take a look at VBScript (.VBS files), which is a
scripting-language within Windows itself and thus should be able to create
(multiple) DOS-box windows.

Regards,
Rudy Wieser



Reply With Quote
  #8  
Old 10-14-2007, 05:25 AM
Mark Dormer
Guest
 
Posts: n/a
Default Re: Single Batch File

Depending on what your trying to do this tool might be of use.

FreePing
http://www.tools4ever.com/products/free/freeping/

Regards
Mark Dormer


"Vis-MCSA" <(E-Mail Removed)> wrote in message
news:4DB16E44-08D4-49DE-8610-(E-Mail Removed)...
>i have to run following ping command for 9 ips.
>> ping 192.168.1.1 -t
>> ping 192.168.1.4 -t
>> ping 192.168.1.7 -t
>> ping 192.168.1.8 -t
>> ping 192.168.1.15 -t
>> ping 192.168.1.16 -t
>> ping 192.168.1.37 -t
>> ping 192.168.1.38 -t
>> ping 192.168.1.49 -t

>
>
>> is there any process by which I dont have to type each time in command
>> prompt ot run every ping. can we create any batch file..
>>
>> any help................



Reply With Quote
  #9  
Old 10-17-2007, 07:04 AM
Vishal
Guest
 
Posts: n/a
Default Re: Single Batch File

Sorry I think I post it in Wrong Community...I want to tell u what I want and
I am doing ???....
1-- I am using windows XP with SP2.
I Creat a Folder name Ping and There I creat saparate 8 Batch file for all
ping.
then I select all and press enter or Open.(All pinging Batch File.)
then I go to taskbar and right click with Mouse and go to the "Tile windows
Horizontally" all windows showing on Desktop with Horizontally then I press
"Print SCRN" key and paste in MS Word for my daily ping status record.

So I want just single batch file .....click & all ping show in Horizontally
in Windows Screen.. (or desktop)




"R.Wieser" wrote:

> Vishal <(E-Mail Removed)> schreef in berichtnieuws
> 7A5D168F-F0E4-4829-8C1D-(E-Mail Removed)...
> > I creat a batch file but it is showing in Same window I want Separate

> windows
> > for every ping. Please help........Thanks

>
> I'm afraid its as "Don Phillipson" allready mentioned : In Win98 a
> batch-file is a function of the command-interpreter of the dos-box its in,
> and it cannot (really) interact with its parent, Windows.
>
> Maybe you should take a look at VBScript (.VBS files), which is a
> scripting-language within Windows itself and thus should be able to create
> (multiple) DOS-box windows.
>
> Regards,
> Rudy Wieser
>
>
>
>

Reply With Quote
  #10  
Old 11-07-2007, 08:31 PM
Dave B.
Guest
 
Posts: n/a
Default Re: Single Batch File

You could make batch file to send output to files and then open the files?
eg
ping 192.168.1.1 -t>file1.txt
ping 192.168.1.2 -t>file2.txt
etc
then another batch file to open them all up



Vishal wrote:
> Sorry I think I post it in Wrong Community...I want to tell u what I
> want and I am doing ???....
> 1-- I am using windows XP with SP2.
> I Creat a Folder name Ping and There I creat saparate 8 Batch file
> for all ping.
> then I select all and press enter or Open.(All pinging Batch File.)
> then I go to taskbar and right click with Mouse and go to the "Tile
> windows Horizontally" all windows showing on Desktop with
> Horizontally then I press "Print SCRN" key and paste in MS Word for
> my daily ping status record.
>
> So I want just single batch file .....click & all ping show in
> Horizontally in Windows Screen.. (or desktop)
>
>
>
>
> "R.Wieser" wrote:
>
>> Vishal <(E-Mail Removed)> schreef in berichtnieuws
>> 7A5D168F-F0E4-4829-8C1D-(E-Mail Removed)...
>>> I creat a batch file but it is showing in Same window I want
>>> Separate windows for every ping. Please help........Thanks

>>
>> I'm afraid its as "Don Phillipson" allready mentioned : In Win98 a
>> batch-file is a function of the command-interpreter of the dos-box
>> its in, and it cannot (really) interact with its parent, Windows.
>>
>> Maybe you should take a look at VBScript (.VBS files), which is a
>> scripting-language within Windows itself and thus should be able to
>> create (multiple) DOS-box windows.
>>
>> Regards,
>> Rudy Wieser

Reply With Quote
Reply

Tags
batch, file, single

Thread Tools
Display Modes

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
Forum Jump


All times are GMT. The time now is 11:45 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.