Error 684 using wntAccess functions
Keywords: 684 wntAccessDel wntAccessGet wntAccessAdd
Question:
I am getting the error '684: Error getting server information', when I attempt
to execute any of the wntAccess functions. Most specifically I am trying to delete
access permissions for the group 'Everyone', from a file on the local machine. I am
running WinBatch 2001H, using the version 33002 of the WWWNT34I.DLL. The LastError
written to the WWWBATCH.INI was 2114 (NetServerGetInfo). I am testing on a Win 2000 machine.
Here is the line of code that is failing:
AddExtender("WWWNT34I.DLL")
wntAccessDel("",myfile,"Everyone",300)
Any Ideas?
Answer:
Strange. Apparently the wntAccess functions attempt to execute code that requires that
the 'Server' service is running. Make sure you have this service installed and started.
To locate the 'Server' service on Windows 2000, launch the control panel. Then select
'Administrative tools', next view the 'Services'. Make sure you have the server service
installed and started.
Reply:
Yes, that did it. Apparently we were running this script on a test machine, that didn't have any file
or print services, or the 'Server' service installed. Once we installed it, the script ran flawlessly.
Comment:
We are looking into a way, to modify the wntAccess functions, so that when the server parameter
is set to "" (local machine). The function won't require the server service to be running.
Article ID: W14881
File Created: 2001:11:08:12:40:48
Last Updated: 2001:11:08:12:40:48