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!

How do I create a script that gets executed at start up

Status
Not open for further replies.

Cranger

Programmer
Apr 4, 2001
54
US
We have an annoying user who constantly download mpegs on his machine and then complains he has no space. We end up just going over to his desk and deleting all his mpegs. Anyway, is there a way to write a script so that when he restarts his machine, the script will search his C:\ and delete all mpeg files?
 
You should be able to include the script in a logon file for him. When he logs on the script will run.
 
just add these lines in the login script
del dir\*.mpg
del dir\*.mpeg

where dir is the directory(ies) he stores the mpg/mpegs.


you dont want the script deleting all mpeg/mpgs since some applications do use mpg's. and they may be required for the applications to work.

you can also add a task to the task manager to do the same every day every week or however often you want any day you want.
 
Thank you for your responses. However, being a novice at this and just trying to help out the people who need to deal with this, Where/what is the logon script? Or where can I go to find this or how to add these commands into the task manager? Sorry for being so simple. If you can point me to a place with the info, that should be good enough. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top