question
1
Vote
Vote
2
Answers
Answers
M$0.00
Can I reference a shared network drive from the command line?
I tried a command like "dir \\DELL\*.*" but i
I am trying to backup portions of two computers onto a flash drive located on one of them. How can I reference shared files on the other computer? I can see them in the windows explorer window but I want to automate the backup using a .bat file. If there is another way to automate selective backup I'd love to know how.
The asker of this question selected no best answer.
answers (2)
\\DELL\C$\*.*
It may be easier to first map the drive to a drive letter, then work on it, then unmap it.
net use f: \\dell\c$
dir f:\
net use f: /delete
net use f: \\dell\c$
dir f:\
net use f: /delete
Related questions
140 characters left













If I retry the same command I then get the error:The network name cannot be found.
If I exit the command window and restart it I will get that first error again.
Any more help??
On the computer where the flash drive is connected, it should have a letter (maybe E:). The computer itself has a name. I derived the name of the computer is DELL. Right-click My Computer and choose Properties to get the computer name.
You also need to share the flash drive for the other computer to gain access. Right click on the flash drive in Windows Explorer and choose Sharing or Security. Follow the options to share the drive.
From the second computer, replace my brackets [] with the information you got from the instructions above: \\[The name of computer 1]\[The name of the share you enabled]
Here are some examples:
\\DELL\FlashDrive
\\DELL\E$
Now you can copy your information from both computers to the flash drive