Hi.
There is no options in the WIN98 NET command to do a LOGOFF or a LOGON. You must open a session (local or in the domain) to have right to use the network. So, it has no sense to close or open a network session in that case.
So, I see two options:
1)A Windows session is already opened on the Windows 98 stations.
In that case, the login used to open the session must exist on the W2K server. It is better if the password is the same (you don't have to put in the password in your script.
In Your script, you can use
NET USE letter: \\server\share [password]
COPY
NET USE letter: /D
=> You cannot really close the session.
2) Use FTP sessions in all other cases!
The FTP service must be started on the Windows 2000 server. You can create virtual ftp alias on folders that have to be accessed. Permissions can be set.
You can use FTP (Anonymous or not) to put or get files from the server in all situations (with or without a network session opened).
NB: I use the second option for automatic updates of VirusScan(NAI).
Hoping to have helped you.
Bye.