P
PGB
I am writing a script such that it will connect to every single pc we
have in the building and will rename a folder on every machine ( about
228 machines). The folder is basically a users local profile, so on an
NT machine it is C:\WINNT\Profiles\profilename and on 2k machines it
is C:\Documents and Settings\profileneam. So far the only solutions
that I've been able to come up with is to have a script that uses net
use here is a sample of the code
echo
net use n: \\sfsmk179\C$
n:
cd Documents and Settings\
rename t4pmb t4pmb.old
C:
net use n: /delete
net use o: \\sfsmk179\C$\WINNT\Profiles
o:
rename t4pmb t4pmb.old
C:
net use o: /delete
Basically, i use two drive letters one will connect to an NT machine
(drive o and one will connect to a 2k (drive n.
and will just throw the commands to rename the foldes. My concern is
that sometimes when I am about to disconnect drive o: (and only
happens to drive o I get a prompt saying:
"There are open files and/or incomplete directory searches pending on
the
connection to o:.
Is it OK to continue disconnecting and force them closed? (Y/N) [N]:"
This is a nuisance since it defeats the purpose of the script which is
to automate everything and should run unsupervised.
Can you give some advice?
PGB
have in the building and will rename a folder on every machine ( about
228 machines). The folder is basically a users local profile, so on an
NT machine it is C:\WINNT\Profiles\profilename and on 2k machines it
is C:\Documents and Settings\profileneam. So far the only solutions
that I've been able to come up with is to have a script that uses net
use here is a sample of the code
echo
net use n: \\sfsmk179\C$
n:
cd Documents and Settings\
rename t4pmb t4pmb.old
C:
net use n: /delete
net use o: \\sfsmk179\C$\WINNT\Profiles
o:
rename t4pmb t4pmb.old
C:
net use o: /delete
Basically, i use two drive letters one will connect to an NT machine
(drive o and one will connect to a 2k (drive n.
and will just throw the commands to rename the foldes. My concern is
that sometimes when I am about to disconnect drive o: (and only
happens to drive o I get a prompt saying:
"There are open files and/or incomplete directory searches pending on
the
connection to o:.
Is it OK to continue disconnecting and force them closed? (Y/N) [N]:"
This is a nuisance since it defeats the purpose of the script which is
to automate everything and should run unsupervised.
Can you give some advice?
PGB