简体   繁体   English

使用NSIS共享网络上的目录

[英]share a directory on the network using NSIS

I want to share a directory on my computer on the network using NSIS. 我想使用NSIS在网络上的计算机上共享目录。 Is there a way to achieve it. 有没有办法实现它。

I want to share C:\\Temp as \\\\MYNAME\\app\\ using NSIS 我想使用NSIS C:\\Temp as \\\\MYNAME\\app\\共享C:\\Temp as \\\\MYNAME\\app\\

There are some macros in the NSIS wiki to share folders . NSIS Wiki中有一些宏可以共享文件夹 They are stated to work up to Windows 2008. 据说它们可以在Windows 2008上运行。

You can simply execute the command line as : 您可以简单地以以下方式执行命令行:

nsExec::ExecToLog 'NET SHARE app="C:\Temp" /GRANT:Username,FULL'

Where username is windows user that can access the folder, similarly you can use Everyone, $, etc. 用户名是可以访问该文件夹的Windows用户,同样,您可以使用Everyone,$等。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM