Deleting of file/Folder from network

G

Guest

Hi
I don't know whether this is a appropriate forum to disuss abt this
problem..I want to remove a exe file from the network but the issue is when
to try to delete it says it is used and ifkill the process of the exe we will
be able to delte it.Doing it manually on approx 2000 machines willbe huge
task.Can it be done thru script or sme tool....

Rajnish
 
P

Pegasus \(MVP\)

Rajnish said:
Hi
I don't know whether this is a appropriate forum to disuss abt this
problem..I want to remove a exe file from the network but the issue is when
to try to delete it says it is used and ifkill the process of the exe we will
be able to delte it.Doing it manually on approx 2000 machines willbe huge
task.Can it be done thru script or sme tool....

Rajnish

It would be helpful if you stated the operating system of your
machine. On a WinXP you could run this batch file:

@echo off
for /F %%a in (c:\PCs.txt) do (
taskkill /s %%a /im SomeProcess.exe
del "\\%%a\c$\Program Files\App\SomeProcess.exe"
)

The file c:\PCs.txt contains a list of your PCs' NetBIOS
names. The batch file will take a long time to run - let
it run overnight.
 
G

Guest

Hi
Thnks for the prompt response all the wks are loaded with win2k and exe by
the name tk.exe.small query will it also delete in case exe is opened..i need
to delete the exe irrespect of whether it is open or not..Pl help..

Rajnish
 
P

Pegasus \(MVP\)

Give it a try!

Rajnish said:
Hi
Thnks for the prompt response all the wks are loaded with win2k and exe by
the name tk.exe.small query will it also delete in case exe is opened..i need
to delete the exe irrespect of whether it is open or not..Pl help..

Rajnish
 
G

Guest

this batch file has to modified only for the path or something else has top
be done as it is not wrkg
 
P

Pegasus \(MVP\)

"as it is not wrkg" means nothing to me. Please take
the time and show your own version of the batch
file, then quote the exact and unabbreviated error
message(s) and state your operating system. Try to
spend as much time on your replies as I spend
on mine!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top