<br><br><div><span class="gmail_quote">2006/3/6, Manasa PV <<a href="mailto:Manasa_PV@mindtree.com">Manasa_PV@mindtree.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<p><font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;">Hi,</span></font></p>
<p><font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;"> </span></font></p>
<p><font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;">I am trying to run the command 'net use', to
get the details of the mapped drives on my system.</span></font></p>
<p><font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;">If I run the command through command prompt or a stand
alone java program, I get the correct result. That is :</span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">New connections will be remembered.</span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Status
Local
Remote
Network</span></font></p>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">-----------------------------------------------------------------------------</span></font></p>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">OK
G: \\dt1637-nirmapsd\docapp
Microsoft Windows Network</span></font></p>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Disconnected
\\dt2069-manasa\myMusic Microsoft Windows Network</span></font></p>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">The command completed successfully.</span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Verdana;">But the same code, when I use in a jsp in opencms it gives
the following result:</span><span style="font-size: 10pt; font-family: Arial;"><br><br> </span></font></p>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">New connections will be remembered.</span></font></p>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"></span></font></p>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">There are no entries in the list.</span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p><font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;">Is it a security setting that is preventing this command
from being executed in opencms?</span></font></p></div></blockquote><div><br><br>Hello,<br><br>Isn't it a user problem? I mean when you run your program from command line, you use your userId but when you try within opencms maybe your tomcat server runs with another userId?
<br><br>I'm far from a Windows expert but it wothes to have a look...<br><br>Benoit<br></div><br></div>