Is your computer losing the drive during the day or when it is idle over night?
Or at login/logoff? Maybe instead of running a check for the drive, you can
launch a VBScript or Batch file, before or as your call to the program you need
the mapped drive for? Maybe put it in the login script, if y
Share the suspect drive, put a no-name.txt file in the root directory, and
check for the existence of the file in the shared directory.
I use this technique to validate various conditions.
Frank Wolynski
From: Servers Alive Discussion List [mailto:salive@woodstone.nu] On Behalf Of
Paul A.
Hello all,
Does anyone else have a need to check a desktop for the existence of a mapped
network drive? I have one of my shipping computers that may or may not be
losing a drive mapping periodically. I’d like to create a check to see if
this drive is “there”, but am not sure of what type of
Here is my script.
The most important lines are :
1. reg.exe EXPORT "HKLM\SOFTWARE\Wow6432Node\DBU Consulting\Servers
Alive" "C:\ServersAlive\Backup\RegistryExport.reg" /y
=> exports the registry to a REG file
2. 7za.exe a "C:\ServersAlive\Backup\%$ZIP%" "C:\ServersAlive\config"
=> makes a copy