Is it possible to map a network share to a local folder?

  • Thread starter Thread starter TT
  • Start date Start date
T

TT

Hi all.

I would like to map a network share to a local folder.

For example I would like to map the network share \\server\myfolder to
the local folder "c:\documents and settings\username\myfolder". In this
way applications that access to "c:\documents and
settings\username\myfolder" are accessing to \\server\myfolder.

This is possible in unix enviroments using the mount command.

Is it possible in windows 2000 server? (also using thirdy parts
products)

Thanks to all
 
TT said:
Hi all.

I would like to map a network share to a local folder.

For example I would like to map the network share \\server\myfolder to
the local folder "c:\documents and settings\username\myfolder". In this
way applications that access to "c:\documents and
settings\username\myfolder" are accessing to \\server\myfolder.

This is possible in unix enviroments using the mount command.

Is it possible in windows 2000 server? (also using thirdy parts
products)

Thanks to all

Why don't you just try it?

net use Q: \\%ComputerName%\ShareName
 
Pegasus (MVP) wrote:
-cut-
Why don't you just try it?

net use Q: \\%ComputerName%\ShareName

This is not the answer to my question.
I would mount a remote path to a folder, not to a unit.
For example something like that:

net use Q:\one \\%ComputerNameOne%\ShareName
net use Q:\two \\%ComputerNameTwo%\ShareName

.... and so on
 
TT said:
Pegasus (MVP) wrote:
-cut-

This is not the answer to my question.
I would mount a remote path to a folder, not to a unit.
For example something like that:

net use Q:\one \\%ComputerNameOne%\ShareName
net use Q:\two \\%ComputerNameTwo%\ShareName

... and so on

AFAIK you can't do this with native Windows tools. I suggest
you google for a Unix "mount" command that has been
compiled for Windows.
 
You can't do that.

You can do:

net use Q: \\ComputerOne\ShareFolder

and if ShareFolder contains folders named One and Two you would then have:

Q:\One
Q:\Two

But you can't map "Q:\One" and "Q:\Two" in a net use statement, it just
don't work that way.

--
Richard G. Harper [MVP Shell/User] (e-mail address removed)
* NEW! Catch my blog ... http://msmvps.com/blogs/rgharper/
* PLEASE post all messages and replies in the newsgroups
* The Website - http://rgharper.mvps.org/
* HELP us help YOU ... http://www.dts-l.org/goodpost.htm
 
Pegasus (MVP) wrote:
-cut-
AFAIK you can't do this with native Windows tools. I suggest
you google for a Unix "mount" command that has been
compiled for Windows.
This is what I am looking for.
I found the cygwin package, a unix-like environment windows compiled.
It has its own mount command and it works, but only inside the cygwin
environment, not in the entire OS.

Thank you anyway.
 
Pegasus (MVP) wrote:
-cut-
This is what I am looking for.
I found the cygwin package, a unix-like environment windows compiled.
It has its own mount command and it works, but only inside the cygwin
environment, not in the entire OS.

Thank you anyway.

While not completely fitting the bill, but a partial solution...a shortcut
to a folder.

You can right-click on any network folder, 'Send-To' -> 'Desktop (create
shortcut)'.

The shortcut can't act as a path, like 'Set working folder' or anything
like that, but it is browsable, just like any other folder.

Regards,

DanS
 
DanS wrote:

-cut-
You can right-click on any network folder, 'Send-To' -> 'Desktop (create
shortcut)'.

The shortcut can't act as a path, like 'Set working folder' or anything
like that, but it is browsable, just like any other folder.

Thank you, but this does not work for me.
I have an application that work on folder c:\data. The path of this
folder is hard-coded inside the .exe file.
Now I want to put the data folder on a network share and I need to
always access to c:\data from others PC.
So, application running on several PC will access to c:\data but it is
really accessing to the network path.

Thank you.
 
DanS wrote:

-cut-

Thank you, but this does not work for me.
I have an application that work on folder c:\data. The path of this
folder is hard-coded inside the .exe file.
Now I want to put the data folder on a network share and I need to
always access to c:\data from others PC.
So, application running on several PC will access to c:\data but it is
really accessing to the network path.

Thank you.

It's ALWAYS a bad idea to have hard-coded paths in programs.

I'm not sure if this is possible anyway. Any PC the app is running on would
need to have Windows installed on another drive other than C, if C is to be
a network drive.

What has the author(s) of the program said ?
 
Back
Top