Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Share a Folder


1 reply to this topic

stchin

stchin
  • Members
  • 22 posts

Posted 11 January 2002 - 12:11

I want to share a folder and I know that there is a WINDOWS API called netapi32.dll (NetShareAdd).
I try to write it in InstallScript but still not working.
Anyone know how to do that ???
HELP ME !!!!


pdriley

pdriley
  • Members
  • 91 posts

Posted 11 January 2002 - 14:48

There are so many reasons this might not work, but give it a try if you're desperate.

prototype NETAPI32.NetShareAdd (BYREF STRING, BYVAL LONG, BYREF BYTE, BYREF SHORT);

at the top of your code and then use function as normal NetShareAdd(...).

You never know ... it might work with a little massaging ;-)