On Fri, 4 Dec 2009 12:11:01 -0800, sacrlc <>
wrote:
>A batch job does the following:
>
>net use x: \\<servername>\e$
>copy file.txt \\<servername>\e$\<directory>\
>sleep 20
>net use x: /delete
I would insert "net use X: /del" as line 1 in case the X: drive is already in
use.
Also use "net use x: \\<servername>\e$ /persistsent:No"
But if your need is a simple as you say just use
copy file.txt \\<servername>\e$\<directory>\
and get rid of the drive mapping.
>
>
>We find residual cmd and net processes left running after the "net use x:
>/delete" however there is no sign of the drive. It's like it unmounted the
>drive but for some reason did not close out the "net use" command. The drive
>cannot be found mounted no matter how you look, and yet the same drive letter
>can be re-used without reboot.
>Not all our servers do it and and the ones that do it, don't necessarily do
>it every time, but I have to clean out bunches of these since the bat file
>runs every hour of every day.
>What can be the cause of this and how do I fix it?
>Thanks in advance
--
Dave Mills
There are 10 types of people, those that understand binary and those that don't.
|