View Single Post
Old 21st April 2011, 11:47   #20
deinename
Junior Member
 
Join Date: Jul 2007
Location: Poland
Posts: 6
I don't know why but none of above scripts worked for me.
I managed to share a folder using standard windows command line like this:
code:
nsExec::ExecToStack 'net share "name"="dir_to_share" /remark:"share description"'
pop $NET_SHARE_RETURN_CODE
${If} $NET_SHARE_RETURN_CODE = 0
MessageBox MB_OK|MB_ICONSTOP|MB_TOPMOST 'Share created'
${EndIf}


if return code is "2" than a share with this name already exists
deinename is offline   Reply With Quote