Discussion Locked

Win98 DOS Logon to W2K Server

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

I need to run a batch file that will logon to a W2K server, copy files, and then log off. What I can't figure our is what do I call or configure to get it to logon to the server. I have ask two MCSEs but they have no clue.

Thanks for any help

7 replies

by tdemanmsmvp

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.

by ntoz

arigsby is correct, you might look to see if you can do what you need using WSH though. WSH was included with 98SE and on and is very powerful in compairision to batch scripting. You may even be able to do a call to the LM and pass it the logon credentials.

by flan

yeah, having a MCSE doesn't really say much... i think the biggest problem is disconnecting after you logon. Best way is to logoff the user after completing the copy.

This discussion is closed to new replies.