A bit of everything - netware nt vb
Posted on 1998-10-28
I've been pushed into this so help!!!
We've got a file on one NT4 Netware machine that has to be copied to another NT4 Netware machine each night at 5.30 as a batch job.
I wanted to write an NT Net Use script to do this. However I'm having trouble connecting to each machine. The first NT machine I can map a drive to providing I manually use the NT explorer map drive screen and select 'Bindery connection' and login with a user id and password.
The second machine I have to logon to with a user id and password and the 'context' box of the netware logon set to something like 'ou=fred.ou=lan_1.o=company.c=gb'.
I didn't want to have to go through the 'Windows Nt Explorer' map drive process every night to achieve this for a number of reasons - I don't work at weekends, the login is only allowed after 5pm etc etc.
How can I 'NET USE D: //machine1/path' and
'NET USE E: //machine2/path' ?
I tried a visual basic program using the WNetAddConnection API call but I couldn't specify the a) bindery connection
b) context specific connection.
Can anybody help me - skeleton sample GUI-less API call list or a simple NT login script required.
200points because I'm really desperate. But I'm sure it's not that difficult. By the way, telling me to buy such and such a package is not a valid reply!!!