D
Dave Patrick
From a command prompt;
net pause server
net sess /d /y
'will disconnect all users
'run your backup
net continue server
--
Regards,
Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect
:
| To facilitate scheduled updates, I wrote a small batch file that simply
| replaces certain application files on the server (NT4/WIN2K). Everything
| works fine and the files get updated as long as no one has them opened
| (these are network shared files and anyone in the company could be using
| them).
|
| Is there a way to make sure that the files that need to be replaced are
| released by the operating system (no mater who is using them, just release
| the locks) for the update to go through? In particular, I need something
| that I could use to auto-release locks on specific files (some sort of
batch
| script). Any idea how this should look like?
|
|
net pause server
net sess /d /y
'will disconnect all users
'run your backup
net continue server
--
Regards,
Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect
:
| To facilitate scheduled updates, I wrote a small batch file that simply
| replaces certain application files on the server (NT4/WIN2K). Everything
| works fine and the files get updated as long as no one has them opened
| (these are network shared files and anyone in the company could be using
| them).
|
| Is there a way to make sure that the files that need to be replaced are
| released by the operating system (no mater who is using them, just release
| the locks) for the update to go through? In particular, I need something
| that I could use to auto-release locks on specific files (some sort of
batch
| script). Any idea how this should look like?
|
|