[opencms-dev] Running dos command 'net use' in opencms
Benoit Joseph
benoit.joseph at gmail.com
Mon Mar 6 14:31:49 CET 2006
2006/3/6, Manasa PV <Manasa_PV at mindtree.com>:
>
> Hi,
>
>
>
> I am trying to run the command 'net use', to get the details of the mapped
> drives on my system.
>
> If I run the command through command prompt or a stand alone java program,
> I get the correct result. That is :
>
>
>
>
>
> New connections will be remembered.
>
>
>
>
>
> Status Local Remote Network
>
>
>
>
> -----------------------------------------------------------------------------
>
> OK G: \\dt1637-nirmapsd\docapp Microsoft Windows Network
>
> Disconnected \\dt2069-manasa\myMusic Microsoft Windows Network
>
> The command completed successfully.
>
>
>
>
>
> But the same code, when I use in a jsp in opencms it gives the following
> result:
>
>
>
> New connections will be remembered.
>
>
>
> There are no entries in the list.
>
>
>
>
>
> Is it a security setting that is preventing this command from being
> executed in opencms?
>
Hello,
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?
I'm far from a Windows expert but it wothes to have a look...
Benoit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060306/d225e952/attachment.htm>
More information about the opencms-dev
mailing list