1.

Solve : DIR on remote computers?

Answer»

Hey all, I'm trying to use the CMD command DIR to see the contents of a remote computer (i.e. \\PC01) CONNECTED via LAN (on the same server).

Right now, just typing, for EXAMPLE, dir \\PC01 yields no results (The filename, directory name, or volume LABEL syntax is incorrect). However, typing a specific path (i.e. "\\PC01\My Documents") does show the contents.

So, is there any way (short of using net view \\PC01 and parsing the share name) to view the entire contents (with /s, of course) of a remote computer, either through dir or another command?


Thanks.
--Dark BladeTo enumerate everything on the c drive try
dir /s \\pc01\c$


alternativly you COULD run the dir command using psexec by sysinternals (now microsoft )
http://www.microsoft.com/technet/sysinternals/utilities/psexec.mspx

Hope that helps



Discussion

No Comment Found