Skip to main content

[Migrated content. Thread originally posted on 17 December 2002]

Gisle created a great Win API COBOL program in acucorp news Issue 3 of 2002. It helps you identify users who have files locked on windows network servers. In the original version you have to type in the server name yourself. I replaced the server entry-field with a server combo-box that shows the network servers in a list to pick from. It looks for NT/2000 servers, PDC's and BDC's in all available domains for which your logged in user is an admin group member. Thanks again for a great program Gisle!!! I hope this little tweak is useful. I had to add .txt to file extension of the attached program code file, the forum post would not let me upload with just .cbl extension. So, if you download, you may want to remove the .txt extension.

[Migrated content. Thread originally posted on 17 December 2002]

Gisle created a great Win API COBOL program in acucorp news Issue 3 of 2002. It helps you identify users who have files locked on windows network servers. In the original version you have to type in the server name yourself. I replaced the server entry-field with a server combo-box that shows the network servers in a list to pick from. It looks for NT/2000 servers, PDC's and BDC's in all available domains for which your logged in user is an admin group member. Thanks again for a great program Gisle!!! I hope this little tweak is useful. I had to add .txt to file extension of the attached program code file, the forum post would not let me upload with just .cbl extension. So, if you download, you may want to remove the .txt extension.
I am very pleased to learn that my articles become useful applications and that they can help resolving issues.

However, I am even more pleased to see your enhancement to my original source. It is quite useful indeed, and I am sure I speak for all of us when I thank you for sharing this with the forum.

One very minor note however, remember that this actually demands a domain, if you do not have a domain server, you would have to stick with the ip address.

Your contribution is very much welcome to this forum, as we all by doing this can help each other enhance our applications.

Thank you very much!

[Migrated content. Thread originally posted on 17 December 2002]

Gisle created a great Win API COBOL program in acucorp news Issue 3 of 2002. It helps you identify users who have files locked on windows network servers. In the original version you have to type in the server name yourself. I replaced the server entry-field with a server combo-box that shows the network servers in a list to pick from. It looks for NT/2000 servers, PDC's and BDC's in all available domains for which your logged in user is an admin group member. Thanks again for a great program Gisle!!! I hope this little tweak is useful. I had to add .txt to file extension of the attached program code file, the forum post would not let me upload with just .cbl extension. So, if you download, you may want to remove the .txt extension.
This is great utility, I have just one problem it does not run
on Windows XP, the problem comes with the loading of kernel32
which is not successfull, any ideas on how to fix this

[Migrated content. Thread originally posted on 17 December 2002]

Gisle created a great Win API COBOL program in acucorp news Issue 3 of 2002. It helps you identify users who have files locked on windows network servers. In the original version you have to type in the server name yourself. I replaced the server entry-field with a server combo-box that shows the network servers in a list to pick from. It looks for NT/2000 servers, PDC's and BDC's in all available domains for which your logged in user is an admin group member. Thanks again for a great program Gisle!!! I hope this little tweak is useful. I had to add .txt to file extension of the attached program code file, the forum post would not let me upload with just .cbl extension. So, if you download, you may want to remove the .txt extension.
I don't recall, but it could be that the dll is being loaded explicitly, that is, including path. With XP, Microsoft went back to naming the Windows directory WINDOWS rather than WINNT as it was named under NT 3.x, 4.x and 2000. Hence, if it works on 2000 and not XP, it is very likely this is the cause, check out the call statement that loads the DLL.

[Migrated content. Thread originally posted on 17 December 2002]

Gisle created a great Win API COBOL program in acucorp news Issue 3 of 2002. It helps you identify users who have files locked on windows network servers. In the original version you have to type in the server name yourself. I replaced the server entry-field with a server combo-box that shows the network servers in a list to pick from. It looks for NT/2000 servers, PDC's and BDC's in all available domains for which your logged in user is an admin group member. Thanks again for a great program Gisle!!! I hope this little tweak is useful. I had to add .txt to file extension of the attached program code file, the forum post would not let me upload with just .cbl extension. So, if you download, you may want to remove the .txt extension.
I don't recall, but it could be that the dll is being loaded explicitly, that is, including path. With XP, Microsoft went back to naming the Windows directory WINDOWS rather than WINNT as it was named under NT 3.x, 4.x and 2000. Hence, if it works on 2000 and not XP, it is very likely this is the cause, check out the call statement that loads the DLL.

[Migrated content. Thread originally posted on 17 December 2002]

Gisle created a great Win API COBOL program in acucorp news Issue 3 of 2002. It helps you identify users who have files locked on windows network servers. In the original version you have to type in the server name yourself. I replaced the server entry-field with a server combo-box that shows the network servers in a list to pick from. It looks for NT/2000 servers, PDC's and BDC's in all available domains for which your logged in user is an admin group member. Thanks again for a great program Gisle!!! I hope this little tweak is useful. I had to add .txt to file extension of the attached program code file, the forum post would not let me upload with just .cbl extension. So, if you download, you may want to remove the .txt extension.
Ian,
Sounds like your windows environment PATH variable is missing an entry for the windows system folder. On win95/98 it's the system folder under the windows folder(ex. c:\\windows\\system). On win nt/2000, it's the system32 folder under winnt folder(c: or d:\\winnt\\system32). On win xp, it's the system32 folder under the windows folder(c:\\windows\\system32). Might be a good idea for you to correct this.

[Migrated content. Thread originally posted on 17 December 2002]

Gisle created a great Win API COBOL program in acucorp news Issue 3 of 2002. It helps you identify users who have files locked on windows network servers. In the original version you have to type in the server name yourself. I replaced the server entry-field with a server combo-box that shows the network servers in a list to pick from. It looks for NT/2000 servers, PDC's and BDC's in all available domains for which your logged in user is an admin group member. Thanks again for a great program Gisle!!! I hope this little tweak is useful. I had to add .txt to file extension of the attached program code file, the forum post would not let me upload with just .cbl extension. So, if you download, you may want to remove the .txt extension.
needing ANSITOWIDE / WIDETOANSI?

[Migrated content. Thread originally posted on 17 December 2002]

Gisle created a great Win API COBOL program in acucorp news Issue 3 of 2002. It helps you identify users who have files locked on windows network servers. In the original version you have to type in the server name yourself. I replaced the server entry-field with a server combo-box that shows the network servers in a list to pick from. It looks for NT/2000 servers, PDC's and BDC's in all available domains for which your logged in user is an admin group member. Thanks again for a great program Gisle!!! I hope this little tweak is useful. I had to add .txt to file extension of the attached program code file, the forum post would not let me upload with just .cbl extension. So, if you download, you may want to remove the .txt extension.
Yes, these are required, don't you have them?

[Migrated content. Thread originally posted on 17 December 2002]

Gisle created a great Win API COBOL program in acucorp news Issue 3 of 2002. It helps you identify users who have files locked on windows network servers. In the original version you have to type in the server name yourself. I replaced the server entry-field with a server combo-box that shows the network servers in a list to pick from. It looks for NT/2000 servers, PDC's and BDC's in all available domains for which your logged in user is an admin group member. Thanks again for a great program Gisle!!! I hope this little tweak is useful. I had to add .txt to file extension of the attached program code file, the forum post would not let me upload with just .cbl extension. So, if you download, you may want to remove the .txt extension.
Yes, these are required, don't you have them?

[Migrated content. Thread originally posted on 17 December 2002]

Gisle created a great Win API COBOL program in acucorp news Issue 3 of 2002. It helps you identify users who have files locked on windows network servers. In the original version you have to type in the server name yourself. I replaced the server entry-field with a server combo-box that shows the network servers in a list to pick from. It looks for NT/2000 servers, PDC's and BDC's in all available domains for which your logged in user is an admin group member. Thanks again for a great program Gisle!!! I hope this little tweak is useful. I had to add .txt to file extension of the attached program code file, the forum post would not let me upload with just .cbl extension. So, if you download, you may want to remove the .txt extension.
AS (ante-scriptum) : For those who don't have WIDETOANSI and ANSITOWIDE :
download them at
http://www.acucorp.com/company/newsletter/newsletter_featured/featured_1.php


--> I have this message when I try NetenumFile :


| An error occured When calling NetServerEnum 53 |


On an windows 2000 Server

What's happen ?
Thank you

[Migrated content. Thread originally posted on 17 December 2002]

Gisle created a great Win API COBOL program in acucorp news Issue 3 of 2002. It helps you identify users who have files locked on windows network servers. In the original version you have to type in the server name yourself. I replaced the server entry-field with a server combo-box that shows the network servers in a list to pick from. It looks for NT/2000 servers, PDC's and BDC's in all available domains for which your logged in user is an admin group member. Thanks again for a great program Gisle!!! I hope this little tweak is useful. I had to add .txt to file extension of the attached program code file, the forum post would not let me upload with just .cbl extension. So, if you download, you may want to remove the .txt extension.
Error 53 is: "Network path not found"

[Migrated content. Thread originally posted on 17 December 2002]

Gisle created a great Win API COBOL program in acucorp news Issue 3 of 2002. It helps you identify users who have files locked on windows network servers. In the original version you have to type in the server name yourself. I replaced the server entry-field with a server combo-box that shows the network servers in a list to pick from. It looks for NT/2000 servers, PDC's and BDC's in all available domains for which your logged in user is an admin group member. Thanks again for a great program Gisle!!! I hope this little tweak is useful. I had to add .txt to file extension of the attached program code file, the forum post would not let me upload with just .cbl extension. So, if you download, you may want to remove the .txt extension.
Network path ? What does that mean if I am a server on a network???

And what have I to do .. because this message occurs during the
loading and the possibilities (OK or CANCEL) don't allow me to quit the program.


thank you ...

[Migrated content. Thread originally posted on 17 December 2002]

Gisle created a great Win API COBOL program in acucorp news Issue 3 of 2002. It helps you identify users who have files locked on windows network servers. In the original version you have to type in the server name yourself. I replaced the server entry-field with a server combo-box that shows the network servers in a list to pick from. It looks for NT/2000 servers, PDC's and BDC's in all available domains for which your logged in user is an admin group member. Thanks again for a great program Gisle!!! I hope this little tweak is useful. I had to add .txt to file extension of the attached program code file, the forum post would not let me upload with just .cbl extension. So, if you download, you may want to remove the .txt extension.
Network path ? What does that mean if I am a server on a network???

And what have I to do .. because this message occurs during the
loading and the possibilities (OK or CANCEL) don't allow me to quit the program.


thank you ...

[Migrated content. Thread originally posted on 17 December 2002]

Gisle created a great Win API COBOL program in acucorp news Issue 3 of 2002. It helps you identify users who have files locked on windows network servers. In the original version you have to type in the server name yourself. I replaced the server entry-field with a server combo-box that shows the network servers in a list to pick from. It looks for NT/2000 servers, PDC's and BDC's in all available domains for which your logged in user is an admin group member. Thanks again for a great program Gisle!!! I hope this little tweak is useful. I had to add .txt to file extension of the attached program code file, the forum post would not let me upload with just .cbl extension. So, if you download, you may want to remove the .txt extension.
Is your server in a workgroup instead of in a domain? If so, try Gisles' original version of the program located here: http://www.acucorp.com/company/newsletter/newsletter_featured/files/NetEnumFiles.php

[Migrated content. Thread originally posted on 17 December 2002]

Gisle created a great Win API COBOL program in acucorp news Issue 3 of 2002. It helps you identify users who have files locked on windows network servers. In the original version you have to type in the server name yourself. I replaced the server entry-field with a server combo-box that shows the network servers in a list to pick from. It looks for NT/2000 servers, PDC's and BDC's in all available domains for which your logged in user is an admin group member. Thanks again for a great program Gisle!!! I hope this little tweak is useful. I had to add .txt to file extension of the attached program code file, the forum post would not let me upload with just .cbl extension. So, if you download, you may want to remove the .txt extension.
Network path not found usually means that you have inquiried for a path that does not exist. A typical error here can be if you have omitted the \\\\ prefix. Or if there ain't no dns server you cannot use the server name, but has to use the ip address (still prefixed with \\\\ though). Ex: \\\\192.168.128.1

Also keep in mind that the path you inquire must be entered as it appears on the server, not on a network computer.
Ex: c:\\mydir, not: x:\\mydir