|
|
#1 |
|
the admiral formerly known as overclocked
![]() ![]() ![]() ![]() ![]() Join Date: Aug 2000
Location: Outside the mainstream
Posts: 5,922
|
Command line stuff (batch files)
You gotta love batch files. I had to delete a bunch (BUNCH) of TMP files that were interfering with users logging onto W2kP boxes. (see Q271518 in the M$ kb if you want the full explanation.) I had to do this on about 50 different computers. Thank goodness for batch files and the C$ admin share. Here's what I did:
net use q: \\computer1\c$ q: attrib -r -a -s -h ntuser.pol.tm* /s del ntuser.pol.tm* /s d: net use q: /d echo net send (myusername) Deleting ntuser.pol.tm* on computer1 completed net use q: \\computer2\c$ q: attrib -r -a -s -h ntuser.pol.tm* /s del ntuser.pol.tm* /s d: net use q: /d echo net send (myusername) Deleting ntuser.pol.tm* on computer2 completed etc.... The attrib /s switch searches through all subfolders, as does del /s. Once I worked out the details, I simply duplicated the procedure for all boxes on the network and split it into 5 different batch files, mapping drives to L M N O AND Q. I rock. Hey, you take victories where you can, right? -OC
__________________
But what is adulthood except a delayed end-run around our parents' better judgment? -- Peter Egan *cough* |
|
|
|
|
|
#2 |
|
Chief of Naval Operations
![]() ![]() Join Date: Feb 2001
Posts: 11,733
|
Doesn't it just thrill you that Mr. Bill thinks we don't have any need for the command prompt?
![]()
__________________
stay low... keep moving... |
|
|
|
|
|
#3 |
|
Fleet Admiral
![]() ![]() ![]() ![]() ![]() ![]() |
I don't know what it is about .bat files that makes me happy. I love them...
|
|
|
|