Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to access server using cmd( \\Server\Volume\File) [closed]

Tags:

cmd

I need to get folder names in my server, as you know when you start cmd.exe it has default path name like "C:\Documents and ....". I can get folder names which are in my "C:/" by typing dir *.* /b /o:n > index.txt.

so I have this; C:\Documents and Settings\Name>dir *.* /b /o:n > index.txt

I need this if there is a way; \\Server\Volume\File>dir *.* /b /o:n > index.txt

sorry for my broken english, any help wellcome.

like image 932
Egemn Avatar asked Sep 22 '11 08:09

Egemn


2 Answers

Use:

pushd \\Server\Volume
dir
popd
like image 115
Benoit Avatar answered Oct 25 '22 22:10

Benoit


You could map the drive and then browse that directory:

net use Z: \\Server\Volume
cd /d Z:\
dir

Hope this helps :)

like image 42
Bali C Avatar answered Oct 26 '22 00:10

Bali C