Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I am running Netware 4.11 w/ Windows 9x workstations. I wrote a batch file to clean out the users of the network temp directories. I tried this on on account first. The file named temp.bat is sitting in my c:\program files folder. I opened NW Admin utility and click on my account then located the "Login Script" area and placed the folowing line in the login script space, "#C:\Windows\temp\*.*" Now when I logon to the network it runs the script but doesn't map my network drive (it did before). Is there something I am not doing right in my batch file. I am new to writing batch files also. What would the syntax be to delet a temp directory (besides deltree /y [path name])

Is it possible that you yourself became one of the users who was cleaned out of the temp directories? Im not sure what that has to do with mapping your drives, but maybe you have to add another line to your batch file? Not sure. Just my 2 cents.

You should apply the command in the user's container login script, rather than in the individual user objects. It sounds like the user object login script is taking precedence over the container login script.
In NWADMIN, select the container for the users, rmb to select details for the container object, then go to the login scipt tab.
In the container login script you will probably see the Map commands. Add the line for your script at an appropriate place after the mappings.
By preference, I would suggest locating the batch file in SYS:\public on the server. That way you don't have to have the batch on every user's workstation.

![]() |
I forgot my password for ...
|
Partitioning a new drive ...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |