Tuesday, June 10, 2008

Argument list too long when using RM command

I ran into this issue myself when going to delete a large number of files from a linux drive...


I found the answer here:
http://www.moundalexis.com/archives/000035.php

But the easy answer is this... be very careful and navigate to the location where you want to delete everything and then use this command:
find . -name '*' -print0 | xargs -0 rm

Hope that helps, I know I will use this page to look it up in a few weeks when I forget again.

Labels: , , , , , , , , , , ,

Saturday, May 31, 2008

How to manually delete a service in windows

I had to find out how to manually delete a service the other day...

i looked it up online, nowI cannot find the link where it came from as I just saved the text... (Sorry whotever wrote it!).

Normally it should not be necessary to manually delete a service. Uninstalling an application should remove its associated service (if any).

However, should it be necessary to manually remove a service:

  1. Run Regedit or regedt32.

  2. Find the registry entry:

    HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services

  3. Find the service there and delete it.
    You may wish to look at the keys and see what files the service was using and perhaps delete them also.

Note:

  • You will have to reboot before the list gets updated in server manager.
  • I have had it pointed out that some programs are cunning and prevent you from removing their service easily. (For example the spyware\malware called ‘Command Service’ - "cmdService".) These change the permissions to make it more difficult for you to delete them. For these you will have to right click on the ‘service’ in regedit (regedt32), go to permissions and grant the administrator full control before the service can be deleted.

Labels: , , , , ,