Have you tried "/persistent:yes" ?
> 
> From: "Paul A Norman" <[EMAIL PROTECTED]>
> Date: 2006/04/26 Wed PM 03:07:14 GMT+12:00
> To: "NZ Borland Developers Group - Delphi List" <[email protected]>
> Subject: Re: [DUG] connection to a UNC folder with remote user and
>       passwordonlocal LAN
> 
> Thanks guys,
> 
> I had tried
> 
> net use  \\computer password
> 
> sucessfully, but the ok clearance does not appear to be system wide.
> Explorer still requires a login even if subsequently launched from the same
> dos prompt.
> 
> I'll look into WNetAddConnection again.
> 
>  . .what is happening here is that users on peer to peer Xp  who have a
> shared resource like a printer, are for modern security reasons, putting a
> password on the Guest account.
> 
> The means that any app on other users systems trying to use the shared
> printer, need to authenticate themselves manually first.
> 
> People can do it manually by simply trying to open explorer on the UNC name
> of the computer, be prompted for a password and then all is fine, other apps
> on their workstation can now access shared resources on the remote computer,
> but people forget to and then get bugged when they can not print! Or they
> forget the name of the \\computer they are supposed to connect to, etc  . .
> 
> paul
> 
> 
> On 26/04/06, Paul Eggleton <[EMAIL PROTECTED]> wrote:
> >
> > Conor Boyd wrote:
> > > Dunno if this will do what you want:
> > >
> > > net use m: \\Bob /user:[domainname\username] [password]
> >
> > You could also use WNetAddConnection* API calls for a more direct
> > interface to basically the same thing.
> >
> > Cheers,
> > Paul
> >
> > ---------------------------------------------------------
> > Paul Eggleton                  Ph:    +64-9-4154790
> > Software Developer             Fax:   +64-9-4154791
> > CJN Technologies Ltd.          DDI:   +64-9-4154795
> > http://www.cjntech.co.nz       Email: [EMAIL PROTECTED]
> > ---------------------------------------------------------
> >
> > _______________________________________________
> > Delphi mailing list
> > [email protected]
> > http://ns3.123.co.nz/mailman/listinfo/delphi
> >
> 
> _______________________________________________
> Delphi mailing list
> [email protected]
> http://ns3.123.co.nz/mailman/listinfo/delphi
> 
> 
Thanks guys,
 
I had tried
net use  \\computer password
sucessfully, but the ok clearance does not appear to be system wide. Explorer still requires a login even if subsequently launched from the same dos prompt.
 
I'll look into WNetAddConnection again.
 
 . .what is happening here is that users on peer to peer Xp  who have a shared resource like a printer, are for modern security reasons, putting a password on the Guest account.
 
The means that any app on other users systems trying to use the shared printer, need to authenticate themselves manually first.
 
People can do it manually by simply trying to open explorer on the UNC name of the computer, be prompted for a password and then all is fine, other apps on their workstation can now access shared resources on the remote computer, but people forget to and then get bugged when they can not print! Or they forget the name of the \\computer they are supposed to connect to, etc  . .
 
paul

 
On 26/04/06, Paul Eggleton <[EMAIL PROTECTED]> wrote:
Conor Boyd wrote:
> Dunno if this will do what you want:
>
> net use m: \\Bob /user:[domainname\username] [password]

You could also use WNetAddConnection* API calls for a more direct
interface to basically the same thing.

Cheers,
Paul

---------------------------------------------------------
Paul Eggleton                  Ph:    +64-9-4154790
Software Developer             Fax:   +64-9-4154791
CJN Technologies Ltd.          DDI:   +64-9-4154795
http://www.cjntech.co.nz       Email: [EMAIL PROTECTED]
---------------------------------------------------------

_______________________________________________
Delphi mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi


_______________________________________________
Delphi mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to