Discussion Locked

Logon script....

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi,

I am a lotus developer.
There is Lotus notes running on win9x machines on Novell network.

I need to capture the username as soon as the user logs on the novell network.

Can the username be captured?
After i get the username i need to give the user his personal file or a directory stored in a shared computer immediately.

I know that a shortcut can be created to the centrally stored personal file and be placed on the desktop of the computer that he is presently using.
But i have no idea as to ho this can be done.

Is it possible to map a network drive using the logon script of novell?

7 replies

by erikdr

1. Can the username be captured?
Yep. Easiest way is using the WHOAMI command in a batch and redirect output to file, but with scripting languages like the Novell logonscript you can do more complicated things.

2. Is it possible to map a network drive using the logon script of novell?
Yes. The Novell equivalent of the NET USE of the MS world is the MAP command. Can be in the logon script or can be from normal command line.

At your service,

- The Netherlands

by jimbb

Try this in your login script:
DOS SET LOGINID=%LOGIN_NAME

Later you can then re-use that DOS environment variable in a batch file or so.

Another solution:

MAP N:=DATA:NOTES/%LOGIN_NAME

This will map drive N: to the directory Notes/John, if your login name is John.

And so you have the map command as well. If you need to use an external command (like NET USE, as Erik suggested), add "#" (Like #net use ...)

Jim

by techsupport

The following line will set a Environment variable "USERNAME" with the user's actual login name.

SET USERNAME = "%LOGIN_NAME"

This discussion is closed to new replies.