Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

logon script addition for search/delete

Status
Not open for further replies.

weezy6902

IS-IT--Management
Jun 2, 2003
46
US
Hey guys, I have a small problem i'm looking at that I want to try and fugure out on the forums. I have to search and delete a certain file on a bunch of client machines and was thinking I will add a scheduled task via the logon script and am having a problem with the scheduled task.

I want to do a "del *.rsf /s" in the scheduled task but when i create the scheduled task it opens cmd from "windows\system32" so im restricted to searching subfolders of that directory. I am trying to avoid using a .bat file as i would have to push this out to all the clients. I'm sure one of you guys see the forest for the trees on this one. I'm pretty sure there's an easy way to do this...

Any takers???

i was just told a vb script would be able to help me out on this... Can i pick brains instead of my nose?
 
You may try this:
"del \*.rsf /s"

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
jeez thats what i was thinking. i swear this site is awesome for me in this respect. its like you just get fumbled up sometimes and the obvious is right there in your face....

Thanks alot PHV you saved me a headache with just one whack heheh
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top