WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

wNT
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

WntAccessAdd error 546 Invalid file directory name


Question:

I am getting the error 546 on the following line:
 
wntAccessAdd(Target_Srv, "e:\test\dir3", "domain\user",  300, "Dir:Change", 0)
(88748) VALUE=> 0
 
TERMINAL EXTENDER ERROR=>546 (546: Invalid file/directory name)

The wwwbatch.ini file indicates:

  
 
[WWWNT34I]
 
LastError=3 (GetNamedSecurityInfo() : DoFileGetSD())

I am pretty certain that the directory path (e:\Users\drptest3) is correct, from the perspective of the remote machine.

What am I doing wrong?

Answer:

The error code 3 in the WWWBATCH.INI file indicates that the path could not be found. I'm pretty sure that I understand what is going wrong here.

The "E:" drive might exist on the remote system, but it is the local system on which wntAccessAdd() is being called that has to be able to access the path on the remote system.

This means that either a UNC spec needs to be passed in, or else the user has to connect a network drive to the remote server and pass in the resource name using that network drive.


Article ID:   W16048
File Created: 2004:03:30:15:42:32
Last Updated: 2004:03:30:15:42:32