• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

What happened to the DIR command

G

Guru-Choc

Guest
#1
Doing it in a directory now displays nothing even if the files are there, what should I use instead. I can't see the sense in taking this out.
 
G

Guru-Choc

Guest
#3
Um don't you think I would of tried that ??

Tried all my drives, can't see anything when I type DIR, but I can type filenames in there and execute them fine.

C:\Documents and Settings\Gareth Hall>dir
Volume in drive C is MAIN
Volume Serial Number is 0C67-12F7

Directory of C:\Documents and Settings\Gareth Hall


Directory of C:\Documents and Settings\Guru-CHoc

File Not Found

C:\Documents and Settings\Guru-Choc>e:

E:\>dir
Volume in drive E is VIDEOS
Volume Serial Number is 3B66-1000

Directory of E:\


Directory of E:\

File Not Found

E:\>
 
P

pc_tek

Guest
#4
wierd... my first guess would be that your cmd.exe got corrupt somehow. If i am not mistaken, the dir commend comes from that file. So I have zipped up my cmd.exe file for you to try to replace.

Make a backup of your original first. Then drop mine into c:\windows\system32

Let me know if this works.
 
A

AmarSingh

Guest
#5
yeah...dir should work fine, but you can also use the unix command ls that has options -l, -a, -F, -R etc
 
G

Guru-Choc

Guest
#9
C:\>dir /ah
Volume in drive C is MAIN
Volume Serial Number is 0C67-12F7

Directory of C:\


Directory of C:\

File Not Found

C:\>
 
I

insaNity

Guest
#11
Originally posted by pc_tek
one other thing.... entertain me here...

try this..

dir /ah

:D
you might be on the right track there - Try this instead:
dir *.* /a

that should show any file; be it hidden, system, normal or read only.

also, what is your output of this command?:
echo %dircmd%
 
G

Guru-Choc

Guest
#12
Ah-ha, that works with the *.*, but why should Ii need too when others don't, is there some switch/setting that may be foobar ??
 
I

insaNity

Guest
#13
I think something is setting the %dircmd% environmental variable to a different filespec. The variable is there to customise DIR so you don't have to type in common switches every time.

what is the output of:
echo %dircmd%

?
 
G

Guru-Choc

Guest
#14
Yes, I had changed a setting in the enviromental variables when I first installed XP, and hadn't used the dos window since, deleted that and all is well. Thanks for the help. I knew I musta done something wrong :)
 

phishhead

OSNN Senior Addict
#17
the unix cmds don't work here...damn that would have been cool tool:mad: pc tek long time no see...peppys back and gone again be back up in a few days da boys have been asking about you over there same with rootnik:D
 
A

AmarSingh

Guest
#19
Originally posted by adobo
the unix cmds don't work here...
oops...it must be that I have cygwin installed and the directory with the bins is set as an environment variable. I didnt even think of that, but i guess that explains why ls works. I just assumed that it was an added feature by MS. now that i check...most unix commands like make and rm work so it that must be the case. Sorry
 

Members online

Latest posts

Latest profile posts

Perris Calderon wrote on Electronic Punk's profile.
Ep, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there https://tinyurl.com/ycpxl
Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
61,962
Messages
673,240
Members
89,017
Latest member
loxioalix