Jump to content

Sharing drive and mapping drive letter via script


Recommended Posts

Posted

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

  • Replies 3
  • Created
  • Last Reply

Popular Days

Guest John John
Posted

Re: Sharing drive and mapping drive letter via script

 

No need to share, just use the SUBST command.

 

John

 

John wrote:

> 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

>

>

Posted

Re: Sharing drive and mapping drive letter via script

 

On Sep 24, 12:05 pm, "John" <J...@nospam.infovis.co.uk> wrote:

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

Guest Bruce Chambers
Posted

Re: Sharing drive and mapping drive letter via script

 

John wrote:

> 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:

http://dts-l.org/goodpost.htm

http://www.catb.org/~esr/faqs/smart-questions.html

 

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


×
×
  • Create New...