Strange problem with netstat

  • Thread starter Thread starter thx1138xxix
  • Start date Start date
T

thx1138xxix

Hello all,

I was hoping someone could help me with a sudden problem I'm having
with the netstat command.

I would occasionaly run "netstat -a -b -n > nstat.txt" just to see what
was going on in my system while online.

Today, I tried it and got a Windows prompt telling me that "There is no
disk in drive. Please insert a disk into drive."

So I tried it without the " > nstat.txt " thinking it was trying to
write the text file to an external drive that had no disk.

Well, I typed "netstat -a -b -n" and ~still~ got "There is no disk in
drive. Please insert a disk into drive."

Then I tried different combinations..

"netstat" alone worked just fine
"netstat -a -n" worked as well
"netstat -b -n" worked too

But "netstat -a -b" gives me the "There is no disk in drive. Please
insert a disk into drive." prompt.

This is just really odd, and I can't figure out what is causing this. I
used to use this command ALL the time with no problem.

The only piece of software I installed recently is Avast! Anti-Virus..
but I don't see why that would cause netstat to do this.

Can anyone please help?

--steve
 
Hello all,

I was hoping someone could help me with a sudden problem I'm having
with the netstat command.

I would occasionaly run "netstat -a -b -n > nstat.txt" just to see what
was going on in my system while online.

Today, I tried it and got a Windows prompt telling me that "There is no
disk in drive. Please insert a disk into drive."

So I tried it without the " > nstat.txt " thinking it was trying to
write the text file to an external drive that had no disk.

Well, I typed "netstat -a -b -n" and ~still~ got "There is no disk in
drive. Please insert a disk into drive."

Then I tried different combinations..

"netstat" alone worked just fine
"netstat -a -n" worked as well
"netstat -b -n" worked too

But "netstat -a -b" gives me the "There is no disk in drive. Please
insert a disk into drive." prompt.

This is just really odd, and I can't figure out what is causing this. I
used to use this command ALL the time with no problem.

The only piece of software I installed recently is Avast! Anti-Virus..
but I don't see why that would cause netstat to do this.

Can anyone please help?

--steve


Type in Netstat /?

-b says " Note that this option can be time-consuming and will fail
unless you have sufficient permissions."

Could be your problem, or not...

Another oddity
Run
%windir%\hh.exe ms-its:X:\Windows\Help\ntcmds.chm::/ntcmds.htm
X being your OS drive
(CMD commands and switches) Doesn't include the -b switch
 
Type in Netstat /?

-b says " Note that this option can be time-consuming and will fail
unless you have sufficient permissions."

Thank you for the reply!

I did notice that when typing -?. However, the -b option has ~always~
worked for me with the "-a -b -n" combination up until a couple days
ago.

Do you by any chance know how these "permissions" might have been
changed? And possibly how I can change them back?

--steve
 
Thank you for the reply!

I did notice that when typing -?. However, the -b option has ~always~
worked for me with the "-a -b -n" combination up until a couple days
ago.
Do you by any chance know how these "permissions" might have been
changed? And possibly how I can change them back?

No clue, I just copy and pasted the text from Netstat /?

Was kinda hoping it would remind you of some changes you made that
would cause this condition.
 
Hi,

Type in Start, Run:

cmd /k set >c:\variables.txt

Open c:\variables.txt in Notepad and post the contents here.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com



Type in Netstat /?

-b says " Note that this option can be time-consuming and will fail
unless you have sufficient permissions."

Thank you for the reply!

I did notice that when typing -?. However, the -b option has ~always~
worked for me with the "-a -b -n" combination up until a couple days
ago.

Do you by any chance know how these "permissions" might have been
changed? And possibly how I can change them back?

--steve
 
Ramesh said:
Hi,

Type in Start, Run:

cmd /k set >c:\variables.txt

Open c:\variables.txt in Notepad and post the contents here.

Hello,

Thank you for your reply.. these were my results..



ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\Owner\Application Data
CLIENTNAME=Console
CommonProgramFiles=C:\Program Files\Common Files
ComSpec=C:\WINDOWS\system32\cmd.exe
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\Owner
NUMBER_OF_PROCESSORS=2
OS=Windows_NT
Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 15 Model 3 Stepping 4, GenuineIntel
PROCESSOR_LEVEL=15
PROCESSOR_REVISION=0304
ProgramFiles=C:\Program Files
PROMPT=$P$G
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOCUME~1\Owner\LOCALS~1\Temp
TMP=C:\DOCUME~1\Owner\LOCALS~1\Temp
USERNAME=Owner
USERPROFILE=C:\Documents and Settings\Owner
windir=C:\WINDOWS
 
I was looking for the Path variable (to see if there is a floppy
drive-letter present in Path), and it seems OK, from your report. Not sure
what else is causing the problem.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


Ramesh said:
Hi,

Type in Start, Run:

cmd /k set >c:\variables.txt

Open c:\variables.txt in Notepad and post the contents here.

Hello,

Thank you for your reply.. these were my results..



ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\Owner\Application Data
CLIENTNAME=Console
CommonProgramFiles=C:\Program Files\Common Files
ComSpec=C:\WINDOWS\system32\cmd.exe
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\Owner
NUMBER_OF_PROCESSORS=2
OS=Windows_NT
Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 15 Model 3 Stepping 4, GenuineIntel
PROCESSOR_LEVEL=15
PROCESSOR_REVISION=0304
ProgramFiles=C:\Program Files
PROMPT=$P$G
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOCUME~1\Owner\LOCALS~1\Temp
TMP=C:\DOCUME~1\Owner\LOCALS~1\Temp
USERNAME=Owner
USERPROFILE=C:\Documents and Settings\Owner
windir=C:\WINDOWS
 
Ramesh said:
I was looking for the Path variable (to see if there is a floppy
drive-letter present in Path), and it seems OK, from your report. Not sure
what else is causing the problem.

I don't understand it either. I've been using the netstat command on
this computer for a long time. Then suddenly this happened. The only
other thing I can think of is that my system installed some automatic
updates.. but I don't see why that should make a difference.

Is there any way to know ~what~ drive and ~what~ disk/disc it's asking
for?

--steve
 
I don't understand it either. I've been using the netstat command on
this computer for a long time. Then suddenly this happened. The only
other thing I can think of is that my system installed some automatic
updates.. but I don't see why that should make a difference.
Is there any way to know ~what~ drive and ~what~ disk/disc it's asking
for?

See if sysinternals has anything to offer, maybe FileMonitor.

One program you might have use for is AccessEnum
"This simple yet powerful security tool shows you who has what access
to directories, files and Registry keys on your systems. Use it to
find holes in your permissions."
http://www.sysinternals.com/FileAndDiskUtilities.html
 
Is there any way to know ~what~ drive and ~what~ disk/disc it's asking
Use either FileMon or DiskMon (from www.sysinternals.com) to find that out.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


Ramesh said:
I was looking for the Path variable (to see if there is a floppy
drive-letter present in Path), and it seems OK, from your report. Not sure
what else is causing the problem.

I don't understand it either. I've been using the netstat command on
this computer for a long time. Then suddenly this happened. The only
other thing I can think of is that my system installed some automatic
updates.. but I don't see why that should make a difference.

Is there any way to know ~what~ drive and ~what~ disk/disc it's asking
for?

--steve
 
Back
Top