help with writing script to del *.tmp from server

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
howvics
Posts: 1
Joined: 26 Apr 2012 14:59

help with writing script to del *.tmp from server

#1 Post by howvics » 26 Apr 2012 15:22

Hi guys,

i am a bit at loss here and i would really appreciate some help.

I need to write a script to search and delete all *.tmp files from all the drives and directories on server 2003 and server 2008.
i am really unclear of what to do,

using del *.tmp only deletes files from current directory and some of the files are located in pretty interesting locations like user shared folders etc.
Is there any way to write such scrip to do this task?

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: help with writing script to del *.tmp from server

#2 Post by foxidrive » 26 Apr 2012 16:17

Code: Select all

del *.tmp /s


DEL /?

for help.

Post Reply