Sharing drive and mapping drive letter via script

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi

Is it possible to use some sort of script to share C drive on a standalone
PC and then map the letter Z to the shared drive?

Thanks

Regards
 
Hi

Is it possible to use some sort of script to share C drive on a standalone
PC and then map the letter Z to the shared drive?

Thanks

Regards

First of all, you'd have to have "File and printer" sharing turned on.
I'm not sure about the scripting for creating a share but if you
manually created a share, you could then create a batch file for
mapping to it. For example, let's say you had a shared folder called
"Utilities" (that could be any folder including the C: drive) and your
computer's name was "thiscomputer" then Your command for mapping to
it would be "net use Z: \\thiscomputer\Utilities"
 
John said:
Hi

Is it possible to use some sort of script to share C drive on a standalone
PC and then map the letter Z to the shared drive?

No, because, by definition, a "standalone" PC has no network connection
with any other computers, so sharing isn't an option.

It is possible to do so with networked computers, however.

--

Bruce Chambers

Help us help you:



They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. ~Benjamin Franklin

Many people would rather die than think; in fact, most do. ~Bertrand Russell

The philosopher has never killed any priests, whereas the priest has
killed a great many philosophers.
~ Denis Diderot
 
Back
Top