Sharing drive and mapping drive letter via script

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
 
S

SilvrT

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"
 
B

Bruce Chambers

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top