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

Error Codes

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

Error 145: Map Attempted. No Network Resource.

Keywords:  error 145 cannot access net resource

Question:

I'm using the function n3MapDir, and am getting the error 145, cannot access net resource error message.

My syntax is:

        n3MapDir("\\OPERATION_2\SYS\APPS\PROFILE\","J:\") 
Further investigation has revealed that if I run the script from the "network" copy of Windows I get the error of "136: Invalid driver number" or "145: Cannot map to the resource".

Originally I was on my "C:" drive copy of Windows and things were working just fine. It was after rebooting and logging in to the network that I began having these troubles. I have again tested by going back to my C: drive copy of Windows 3.11 and the script works like a charm.

So what would let the script work if Windows is on C: vs Windows on F:? I will now investigate SYSTEM.INI and WIN.INI settings but do you know of anything such as DLLs and such that could affect this?

Resolution:

Usually I get an error from Netware when the driver loads (when using NETX and trying to load the Netware driver for VLM). This time I didn't.

After comparing two SYSTEM.INI files, (one that worked and one that didn't) and switching out different things, I found that although I was using VLMs, the NETWARE.DRV from Windows was in use when using IPX/NETX.


Error 145 with Compiled EXE and Not WBT:

  1. When you get the error: "145: Map Attempted. Cannot access net resource," and the script works fine as WBT, but not as compiled EXE:

    Check the Netware extender DLL .EXT (or .DAT in older versions) file in the \WINBATCH\SYSTEM\ directory and make sure that:

    • There's only one Netware DLL listed, and that

    • Both the compiler and the WinBatch script are looking at this same DLL.

  2. If you're getting this error on both the Compiled and Uncompiled WinBatch script, the problem might be that the net resource access rights are not set with permissions that allow you to map to that area.

    For example, in the following code:

            n3map("\\SERVER\VOLUME\DIRPATH", "K:")
    
    you could get this error if the DIRPATH share rights were not set to let your users map to that area.

    Make sure you can map to that area manually (outside of WinBatch) and see if you're also having problems. If so, the problem is with your Novell access rights permissions on that resource.


Article ID:   W12944
Filename:   145 Map Attempted - Cannot access net resource.txt
File Created: 2001:03:01:11:40:46
Last Updated: 2001:03:01:11:40:46