Thanks Conor,
I completely overlooked
/SAVECRED
I'll give it a go. For either ...
net use /SAVECRED \\192.168.1.3 password
OR
net use \\192.168.1.3 password /SAVECRED
I get this back,
"A command was used with conflicting switches."
Which sort of confuses me as I only used one switch I think
Paul
On 26/04/06, Conor Boyd <[EMAIL PROTECTED]> wrote:
If the net use thing is still an option, the net use command on XP has a optional /SAVECRED parameter which seems to be supposed to maintain the credentials used to connect...net use /? doesn't give you much in the way of detail, but at least it will give you the available parameters which might help you when googling.HTH again,Conor
Thanks guys,I had triednet use \\computer passwordsucessfully, 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 . .
_______________________________________________
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
