how many people are connected to me in a network?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
pleigh
Forum Contributor
Posts: 445
Joined: Wed Jan 19, 2005 4:26 am

Post by pleigh »

yes i tried to run new view in the command prompt....it returns all the computers connected in our network...
User avatar
infolock
DevNet Resident
Posts: 1708
Joined: Wed Sep 25, 2002 7:47 pm

Post by infolock »

i have no idea why it would not work then because it works for me and everyone else too.. :?:
User avatar
pleigh
Forum Contributor
Posts: 445
Joined: Wed Jan 19, 2005 4:26 am

Post by pleigh »

me too...but anyway....thanks...it's not yet my requirement, but i tried it for future use...
saumya
Forum Contributor
Posts: 193
Joined: Sun Jan 30, 2005 10:21 pm

Post by saumya »

well i am using win2000,and at command prompt netview says
an error.that it is not recognized as command,programme or batch file.
Again i am saying that I am not the server but connected to server.for this also the code is fine or its only for the server .
thank guys
saumya
User avatar
n00b Saibot
DevNet Resident
Posts: 1452
Joined: Fri Dec 24, 2004 2:59 am
Location: Lucknow, UP, India
Contact:

Post by n00b Saibot »

Look you are entering the command wrongly. there is a space between 'net' and 'view' so enter it just as shown "net view" and not "netview". :?
saumya
Forum Contributor
Posts: 193
Joined: Sun Jan 30, 2005 10:21 pm

Post by saumya »

no luck this time too.
r u sure,this will work if i am inside the network not the server?because some people said that this is only possible if you can write a shell script or windows programm not from php.I am confused.You guys seems to fly with the script why not me?
:oops:
User avatar
n00b Saibot
DevNet Resident
Posts: 1452
Joined: Fri Dec 24, 2004 2:59 am
Location: Lucknow, UP, India
Contact:

Post by n00b Saibot »

post the error output that command 'net view' prints on you shell/command prompt and on the page.
saumya
Forum Contributor
Posts: 193
Joined: Sun Jan 30, 2005 10:21 pm

Post by saumya »

'net' is not recognized as an internal or external command,
operable program or batch file.

the above is the answer to "net view" on my "c:\>"

thanks for your patience
saumya
User avatar
n00b Saibot
DevNet Resident
Posts: 1452
Joined: Fri Dec 24, 2004 2:59 am
Location: Lucknow, UP, India
Contact:

Post by n00b Saibot »

Aha! May be I got it. This may be because you PATH var is not set correctly.
at Command Prompt type the following

Code: Select all

PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;%PATH%
NET VIEW
IF your windows home dir is other than WINDOWS e.g WINNT then replace WINDOWS with WINNT. Remember, Type as is given here.
Run the above command and then tell me what thay says. ;)
saumya
Forum Contributor
Posts: 193
Joined: Sun Jan 30, 2005 10:21 pm

Post by saumya »

no luck my friend. :cry: :cry:
it says the same thing

'net' is not recognized as an internal or external command,
operable program or batch file.

:oops: :cry:
User avatar
n00b Saibot
DevNet Resident
Posts: 1452
Joined: Fri Dec 24, 2004 2:59 am
Location: Lucknow, UP, India
Contact:

Post by n00b Saibot »

Try searching for net.exe on your computer. I think it has been displaced somewhere.
saumya
Forum Contributor
Posts: 193
Joined: Sun Jan 30, 2005 10:21 pm

Post by saumya »

ok.i got the net.its inside c:\winnt\system32
next is what?
if i run net view from inside that folder it displays my computer name
User avatar
n00b Saibot
DevNet Resident
Posts: 1452
Joined: Fri Dec 24, 2004 2:59 am
Location: Lucknow, UP, India
Contact:

Post by n00b Saibot »

does the net view command output only your computer or any other one also. if your comp is the only onr listed then your LAN has a prob. without correcting that first you can't see others.
saumya
Forum Contributor
Posts: 193
Joined: Sun Jan 30, 2005 10:21 pm

Post by saumya »

ok.
actually I am connected to a server and work group.all of us are behind a firewall.so is it possible to see others or not?
thank you very very much.I love your patience. :D
will u be my friend? :?:
Post Reply