@echo off
echo "Script de demarrage"
net use T: \\PDC\temp /PERSISTENT:NO

Then, if the PDC becomes down, this script wouldn't work and i must be there to change the name of the server in the script.

So, what should I do ??

Maybe you could use errorlevel to try your preferred server first?

  net use T: \\PDC\temp /PERSISTENT:NO
  if errorlevel 1 net use T: \\%LOGONSERVER%\temp /PERSISTENT:NO


-- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba

Reply via email to