Deleting of file/Folder from network

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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.
 
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
 
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
 
this batch file has to modified only for the path or something else has top
be done as it is not wrkg
 
"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!
 
Back
Top