login script problems with net use

  • Thread starter Thread starter Brian Henry
  • Start date Start date
B

Brian Henry

a bunch of people are useing the same login script, but one person has this
problem every time they use it, why is this happening? the script deletes
the old network drive mappings useing net use q: /delete before it recreates
them every time, but when the delete runs for one drive (this is at logon so
nothing should be open or running) it says

net use q: /delete
There are open files and/or incomplete directory searches pending on the
connection to q:

Is it OK to continue disconnecting and force them closed? (Y/N) [N]:

Why is it saying this when its doing this at a logon? anyways to stop it?
thanks
 
First line in the login script:

net use * /del /y

and when mapping the drives:

net use x: \\server\share /persistent:no
 
Keep in mind, Lanwench, that 'net use * /del /y' will cause problems on
9x clients. 9x clients map the Z: drive to run the login script from,
so deleting all drive mappings is login script suicide on 9x.

Lanwench said:
First line in the login script:

net use * /del /y

and when mapping the drives:

net use x: \\server\share /persistent:no

Brian said:
a bunch of people are useing the same login script, but one person
has this problem every time they use it, why is this happening? the
script deletes the old network drive mappings useing net use q:
/delete before it recreates them every time, but when the delete runs
for one drive (this is at logon so nothing should be open or running)
it says

net use q: /delete
There are open files and/or incomplete directory searches pending on
the connection to q:

Is it OK to continue disconnecting and force them closed? (Y/N) [N]:

Why is it saying this when its doing this at a logon? anyways to stop
it? thanks
 
In case it's not obvious to the OP, instead you could do something like:

net use x: /d
net use x: \\server\share /persistent:no

Lanwench said:
Eeeeek - forgot about that. Thanks. :-)
Keep in mind, Lanwench, that 'net use * /del /y' will cause problems
First line in the login script:

net use * /del /y

and when mapping the drives:

net use x: \\server\share /persistent:no

Brian Henry wrote:
a bunch of people are useing the same login script, but one person
has this problem every time they use it, why is this happening? the
script deletes the old network drive mappings useing net use q:
/delete before it recreates them every time, but when the delete
runs for one drive (this is at logon so nothing should be open or
running) it says

net use q: /delete
There are open files and/or incomplete directory searches pending on
the connection to q:

Is it OK to continue disconnecting and force them closed? (Y/N) [N]:

Why is it saying this when its doing this at a logon? anyways to
stop it? thanks
 
Back
Top