PDA

View Full Version : Windows logs me off...


longtex
August 25th, 2004, 01:16 AM
A file server has a VPN connection to a remote server. It periodically updates files back and forth. Occasionally it suddenly declares that it can't see the mapped drive, and when it attempts to re-map the drive (with NET USE ...) an error is declared: Error 1245: (null)

This can be corrected by logging off and logging back on, but that's no good, because it disrupts the users on the LAN. You do have to log off, because according to the desktop, you're still logged on...

It is possible to re-map the drive with Windows Explorer, but that's also a problem, because the system is in a retail store and the employees generally don't have any idea how to map drives - it needs to be automated for them. That's why we're using the command line NET USE in the batch file that runs the updates app - it checks, and if it doesn't see the Z: drive, it executes the NET USE... which says that it's not logged on... Perhaps there's a good way to reset whatever flag it is that's making NET USE think it's not logged?

Any ideas?