Problem accessing external hard drive on shared network
I have two PC's and an external hard drive.
So far, no concern. The external hard drive is shared on the network if and only if they were switched on and connected to the PC before Windows starts. Therefore, if I want to access a file on the external hard drive from one computer while the disc was lit after loading windows, you need to go back through "sharing and security ..." so that I can play.
I wonder if there is a trick to tackle this problem, and share the disc from its connection to the computer. Can you help me?
Re: Problem accessing external hard drive on shared network
If you have already installed a network drive on your PC that allows you to go on the hard drive's shared network. Indeed, the problem is not mounted on windows network drives as boot. So if your windows startup can not find the shared hard disk, it's over.
The solution to the script. Bat is possible.
Create one file.bat and edit it by putting a line like:
Code:
NET USE R:\\10.0.0.1\shared_name
where,
R: is the network drive letter that will appear on your desktop.
10.0.0.1 is the IP address of the PC or the hard drive that is connected; you can also put the name of the computer in this place.
shared_name is the shared name of that drive.
If you use a shared drive that requires a user name and password:
Code:
NET USE R:\\10.0.0.1\share_name password/USER: user_name
where,
user_name is login to login
password is the password for that drive
Put this file.bat file on the desktop.
Re: Problem accessing external hard drive on shared network
Thank you for your answer, but it's not exactly what I try to do. What I want is I would like my external hard drive to be automatically shared on the network when it connects. It is possible?
Re: Problem accessing external hard drive on shared network
To my knowledge, it is not possible to share a USB drive automatically at its connection, for it is against possible with the help of a small trick on your USB disk you created an autorun.inf file containing:
Code:
[autorun]
open = file.bat
you created the file containing file.bat:
Code:
net share share / delete
net share sharing =%cd%
sharing is the name that you will give to your share folders.
%cd% is the current folder (the root of your HDD since the BAT is at the root of that drive).
autorun if not deactivated, your drive should be shared automatically as you want; otherwise you have just to double click on file.bat
Re: Problem accessing external hard drive on shared network
I shared a hard disk on a remote PC. I disconnected and rebooted the PC. I tried connecting the HD at startup and also after the boot of the remote PC, it works in all cases.
Re: Problem accessing external hard drive on shared network
I followed your advice. So I assigned (on a single PC for the test) the letter T to one of my drives.
I wrote the bat accordingly:
Code:
MyDoc net share / delete
net share mydocs = T:
And autorun
Code:
[autorun]
open = partage.bat
The result:
When I plug my hard drive, I have a small menu autorun that asks me if I want to open the disk, display images, and launch the autorun. I selected the program, and I see that my disk is now shared on the network.