<div>Thanks Conor,</div>
<div> </div>
<div>I completely overlooked</div>
<div> </div>
<div><font color="#0000ff" size="2"> /SAVECRED </font></div>
<div><font color="#0000ff" size="2"></font> </div>
<div><font color="#000000" size="2">I'll give it a go. For either ...</font></div>
<div><font color="#000000" size="2"></font> </div>
<div><font size="2">net use /SAVECRED <a href="file://192.168.1.3/">\\192.168.1.3</a> password</font></div>
<div><font size="2"></font> </div>
<div><font size="2">OR</font></div>
<div><font size="2"></font> </div>
<div><font size="2">net use <a href="file://192.168.1.3/">\\192.168.1.3</a> password /SAVECRED </font></div>
<div><font color="#000000" size="2"></font> </div>
<div><font color="#000000" size="2">I get this back, </font></div>
<div><font color="#0000ff" size="2"></font> </div>
<div><font color="#990000">"A command was used with conflicting switches."</font></div>
<p><font color="#000000" size="2">Which sort of confuses me as I only used one switch I think</font></p>
<div>Paul<br><br> </div>
<div><span class="gmail_quote">On 26/04/06, <b class="gmail_sendername">Conor Boyd</b> <<a href="mailto:Conor.Boyd@trimble.co.nz">Conor.Boyd@trimble.co.nz</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div style="DIRECTION: ltr">
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">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...
</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">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.
</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">HTH again,</font></span></div></div>
<div style="DIRECTION: ltr"><span class="q">
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">Conor</font></span></div><br>
<div lang="en-us" dir="ltr" align="left">
<hr>
</div>
<div lang="en-us" dir="ltr" align="left"><font face="Tahoma"><font size="2"><b>From:</b> <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:delphi-bounces@ns3.123.co.nz" target="_blank">delphi-bounces@ns3.123.co.nz
</a> [mailto:<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:delphi-bounces@ns3.123.co.nz" target="_blank">delphi-bounces@ns3.123.co.nz</a>] <b>On Behalf Of </b>Paul A Norman<br><span><font face="Arial" color="#0000ff">
</font></span></font></font></div></span></div>
<div style="DIRECTION: ltr"><span class="e" id="q_10ad430597cfa683_2">
<div lang="en-us" dir="ltr" align="left">Thanks guys,</div>
<div><font face="Arial" color="#0000ff" size="2"></font> </div>
<div>I had tried </div>
<blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
<div>net use <a>\\computer</a> password</div></blockquote>
<div>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.</div>
<div><font face="Arial" color="#0000ff" size="2"></font> </div>
<div>I'll look into WNetAddConnection again.</div>
<div><font face="Arial" color="#0000ff" size="2"></font> </div>
<div> . .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.</div>
<div><font face="Arial" color="#0000ff" size="2"></font> </div>
<div>The means that any app on other users systems trying to use the shared printer, need to authenticate themselves manually first.</div>
<div><font face="Arial" color="#0000ff" size="2"></font> </div>
<div>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
<a>\\computer</a> they are supposed to connect to, etc . . </div></span></div><br>_______________________________________________<br>Delphi mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Delphi@ns3.123.co.nz">
Delphi@ns3.123.co.nz</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://ns3.123.co.nz/mailman/listinfo/delphi" target="_blank">http://ns3.123.co.nz/mailman/listinfo/delphi</a><br><br><br></blockquote>
</div><br>