1.

Solve : Starting a batch before other services?

Answer»

I don't like lingering folders or files left from installs that I'm TRYING to delete using a batch.

however I can't delete the files (.dll) since they are being ran.

Using the killtask /fi "modules eq (the dll)" I can kill the tasks that are running those files then delete. however most of them are ran from things I don't want to kill or simply can't SVCHOST so I just wonder how adaware can run before the PROCESSES load so they aren't attached to any running process how can I get my batch to load to delete them? Things I've noticed the dll's running with are explorer and svchost so the only time I really want to get the files are during startup. I can live with that.

Sorry if I should ask this in windows xp forum but since it's a batch file I thought to PUT it here first.well heres a way just write ur batch then save it in ur c drive then open run and type in sysedit then whole bunch of boxes come up the one ontop will be called autoexec of some sort just type in

CALL C:\myfile.bat


that will run it everytime the computer startsWell i've tried adding it to the autoexec.bat but it doesn't work. I can add it there but it never does get ran. But I still need it to run before explorer and svchost get called in Windows XP if i didn't say already.ok write ur batch but add this LINE


Code Sample
echo copy %0 >> c:\autoexec.bat


or this


Code Sample
copy %0 "C:\docume~1\all users\start up\menu\progra~1\start up"



try those and tell us if it worksremeber after running ur program ten resart ur comp good luck



Discussion

No Comment Found