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!

little cmd problem im looking into

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???
 
This could be done using a startup script in VB, post in this forum and someone will point you in the right direction.

forum329
 
Why don't you use an explicit path?

del %systemdrive%\*.rsf /s

PSC

Governments and corporations need people like you and me. We are samurai. The keyboard cowboys. And all those other people out there who have no idea what's going on are the cattle. Mooo! --Mr. The Plague, from the movie "Hackers
 
yeha i was just trippin out bigtime brainfart there yesterday hahah....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top