Script to delete particular folder/file name

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
jamesphilip
Posts: 1
Joined: 23 Jul 2013 01:08

Script to delete particular folder/file name

#1 Post by jamesphilip » 23 Jul 2013 01:11

Hi Team,

I am new to scripting. I need a batch file to search the particular folder/file name and delete the folder.
We are having 50 computer and we dont have active directory, Is there any chance to run one script for all the systems.


Please anyone help me.

penpen
Expert
Posts: 2009
Joined: 23 Jun 2013 06:15
Location: Germany

Re: Script to delete particular folder/file name

#2 Post by penpen » 23 Jul 2013 01:54

Some more informations were not that bad:
Is the folder/file on all systems at the same location (always: X:\1\2\3\4.txt), or
is the folder/file on all systems in the same path (always \1\2\3\4.txt but on different volumes somewhere in A: to Z:), or
is the folder/file on all systems in an own path.

Are there similar folders, that should not be deleted and if how to differ between them, for example:
You have a folder named abc that should be deleted and the folder is on every system in an own path, maybe C:\some\dir\abc on system 1, but there is another directory C:\another\dir\abc that should not be deleted, what should the batch program do then.

penpen

Post Reply