Oliver Rasto
10-25-2005, 02:15 PM
Hi,
why is it, that when i type 'dir' in the current directory it alaways lists
the contents of the root directory?
i.e. when i type 'dir' in 'c:\winnt\' then it lists the contents of c:\
when i type 'dir' in 'i:\src\php\' then it lists the contents of i:\
When i have a file called 'file1' in directory 'c:\directory1' and i run
'type file1' in that directory then i get 'The system cannot find the
filespecified'. But when i copy the file 'file1' in the root directory 'c:\'
and i run the command 'type file1' in ANY direcotry on the drive it works
OK, even if the file 'file1' is not in the current direcotry.
What is wrong with my system?
Thank you.
foxidrive
10-25-2005, 03:21 PM
On Tue, 25 Oct 2005 15:15:32 +0200, Oliver Rasto wrote:
> Hi,
>
> why is it, that when i type 'dir' in the current directory it alaways lists
> the contents of the root directory?
>
> i.e. when i type 'dir' in 'c:\winnt\' then it lists the contents of c:\
> when i type 'dir' in 'i:\src\php\' then it lists the contents of i:\
>
> When i have a file called 'file1' in directory 'c:\directory1' and i run
> 'type file1' in that directory then i get 'The system cannot find the
> filespecified'. But when i copy the file 'file1' in the root directory 'c:\'
> and i run the command 'type file1' in ANY direcotry on the drive it works
> OK, even if the file 'file1' is not in the current direcotry.
>
> What is wrong with my system?
>
> Thank you.
The shortcut has the working directory as c:\
Type cmd
and then try your commands, after CDing to the correct folder.
Mark V
10-30-2005, 04:58 PM
In microsoft.public.win2000.cmdprompt.admin foxidrive wrote:
> On Tue, 25 Oct 2005 15:15:32 +0200, Oliver Rasto wrote:
>
>> Hi,
>>
>> why is it, that when i type 'dir' in the current directory it
>> alaways lists the contents of the root directory?
>>
>> i.e. when i type 'dir' in 'c:\winnt\' then it lists the
>> contents of c:\ when i type 'dir' in 'i:\src\php\' then it
>> lists the contents of i:\
>>
>> When i have a file called 'file1' in directory 'c:\directory1'
>> and i run 'type file1' in that directory then i get 'The system
>> cannot find the filespecified'. But when i copy the file
>> 'file1' in the root directory 'c:\' and i run the command 'type
>> file1' in ANY direcotry on the drive it works OK, even if the
>> file 'file1' is not in the current direcotry.
>>
>> What is wrong with my system?
>>
>> Thank you.
>
> The shortcut has the working directory as c:\
>
> Type cmd
> and then try your commands, after CDing to the correct folder.
That does not seem to be the case as I read the OP, though I may be
wrong.
He claims the the CD *is* below the root and yet an unqualified DIR
lists root content. OP, please confirm this.
First seek out any DIR.CMD or DIR.BAT files on the system search
path, although since DIR is internal to CMD, this should not be the
problem.
Possible junk at a registry
...\command processor\
Autorun=
???
DIRCMD env var.? I would not think so, but worth a look.
DOSKEY macro for "dir" ?
ThorstenK
11-07-2005, 12:58 PM
i think the issue is _how_ you run dir.
On a dos prompt in C:\temp
C:\temp>dir
HAS to show you the contents of C:\temp or there is something verry screwed
on your system.
if you run it in a .bat oder .cmd make sure your current directory is
C:\temp
cd /D C:\temp
dir
or dir C:\temp
to see where your current dir is run this at the beginning.
@echo on
cd
echo where am i?
pause
"Oliver Rasto" <oliverr@host.sk> schrieb im Newsbeitrag
news:2d5c7$435e2ffa$5277719a$21404@news.chello.sk...
> Hi,
>
> why is it, that when i type 'dir' in the current directory it alaways
> lists
> the contents of the root directory?
>
> i.e. when i type 'dir' in 'c:\winnt\' then it lists the contents of c:\
> when i type 'dir' in 'i:\src\php\' then it lists the contents of i:\
>
> When i have a file called 'file1' in directory 'c:\directory1' and i run
> 'type file1' in that directory then i get 'The system cannot find the
> filespecified'. But when i copy the file 'file1' in the root directory
> 'c:\'
> and i run the command 'type file1' in ANY direcotry on the drive it works
> OK, even if the file 'file1' is not in the current direcotry.
>
> What is wrong with my system?
>
> Thank you.
>
>
Mike Jones
11-07-2005, 02:12 PM
ThorstenK wrote:
> i think the issue is _how_ you run dir.
>
> On a dos prompt in C:\temp
> C:\temp>dir
> HAS to show you the contents of C:\temp or there is something verry
> screwed on your system.
>
> if you run it in a .bat oder .cmd make sure your current directory is
> C:\temp
> cd /D C:\temp
> dir
> or dir C:\temp
> to see where your current dir is run this at the beginning.
> @echo on
> cd
> echo where am i?
> pause
>
> "Oliver Rasto" <oliverr@host.sk> schrieb im Newsbeitrag
> news:2d5c7$435e2ffa$5277719a$21404@news.chello.sk...
>> Hi,
>>
>> why is it, that when i type 'dir' in the current directory it alaways
>> lists
>> the contents of the root directory?
>>
>> i.e. when i type 'dir' in 'c:\winnt\' then it lists the contents of
>> c:\ when i type 'dir' in 'i:\src\php\' then it lists the contents of
>> i:\
>>
>> When i have a file called 'file1' in directory 'c:\directory1' and i
>> run 'type file1' in that directory then i get 'The system cannot
>> find the filespecified'. But when i copy the file 'file1' in the
>> root directory 'c:\'
>> and i run the command 'type file1' in ANY direcotry on the drive it
>> works OK, even if the file 'file1' is not in the current direcotry.
>>
>> What is wrong with my system?
>>
>> Thank you.
there's a DOSKEY synonym dir which runs "dir c:\" ?
try typing in (space)dir instead