Universal Naming Convention..... 
Author Message
 Universal Naming Convention.....

in a UNC the following is the basic syntax

\\server\volume\path\filename

Is there anyway to include a username and password with this UNC?
ex. you can access an ftp site by the following url
ftp://123.123.123.123/
but it will prompt you for a username and password unless you include them
in the URL itself

Is there a similiar way to alter a UNC to include a username and password?
        -J



Sun, 07 Dec 2003 00:47:06 GMT  
 Universal Naming Convention.....

says...
Quote:
>in a UNC the following is the basic syntax

>\\server\volume\path\filename

>Is there anyway to include a username and password with this UNC?
>ex. you can access an ftp site by the following url
>ftp://123.123.123.123/
>but it will prompt you for a username and password unless you include them
>in the URL itself

>Is there a similiar way to alter a UNC to include a username and password?
>        -J

Not necessarily what you are looking for but you can authenticate to
the IPC$ share and specify the user then open the file...

net use \\server\ipc$ /user:<domain>\<user> <password>

Kevin



Sun, 07 Dec 2003 00:58:14 GMT  
 Universal Naming Convention.....
actually you can pass /user:<domain>\username password to any share after a
net use command


Quote:

> says...
> >in a UNC the following is the basic syntax

> >\\server\volume\path\filename

> >Is there anyway to include a username and password with this UNC?
> >ex. you can access an ftp site by the following url
> >ftp://123.123.123.123/
> >but it will prompt you for a username and password unless you include
them
> >in the URL itself

> >Is there a similiar way to alter a UNC to include a username and
password?
> >        -J

> Not necessarily what you are looking for but you can authenticate to
> the IPC$ share and specify the user then open the file...

> net use \\server\ipc$ /user:<domain>\<user> <password>

> Kevin



Sun, 07 Dec 2003 22:03:28 GMT  
 Universal Naming Convention.....
Only on NTish platforms, and only if you are not already logged on to that
server with other credentials.

--
MichKa

the only book on internationalization in VB at
http://www.i18nWithVB.com/


Quote:
> actually you can pass /user:<domain>\username password to any share after
a
> net use command




> > says...
> > >in a UNC the following is the basic syntax

> > >\\server\volume\path\filename

> > >Is there anyway to include a username and password with this UNC?
> > >ex. you can access an ftp site by the following url
> > >ftp://123.123.123.123/
> > >but it will prompt you for a username and password unless you include
> them
> > >in the URL itself

> > >Is there a similiar way to alter a UNC to include a username and
> password?
> > >        -J

> > Not necessarily what you are looking for but you can authenticate to
> > the IPC$ share and specify the user then open the file...

> > net use \\server\ipc$ /user:<domain>\<user> <password>

> > Kevin



Sun, 07 Dec 2003 22:28:44 GMT  
 Universal Naming Convention.....
Be very careful in deciding to use 'net use.'  It maps a drive that can be
accessed by the user while your program is running, AND (!!!) will stay
mapped if you don't disconnect the drive when your program exits.

  strNet = "net use " & g_strDriveLetter & " /d"
  Call Shell(strNet, vbHide)

Ciao,
Dave



Mon, 08 Dec 2003 20:56:40 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Universal Naming Convention.....

2. Universal Naming Convention.....

3. FilesSystemObject and Universal Naming Convention

4. Universal Naming Convention.....

5. Copying files using (UNC) Universal Naming Convention

6. Universal Naming Convention trouble

7. Copying files using UNC (Universal Naming Convention)

8. How do I convert a drive letter to UNC(universal naming convention) ?

9. How do I convert a drive letter to UNC(universal naming convention) ?

10. How do I convert a drive letter to UNC(universal naming convention) ?

11. How do I convert a drive letter to UNC(universal naming convention) ?

12. How do I convert a drive letter to UNC(universal naming convention) ?

 

 
Powered by phpBB® Forum Software