login about faq


I am in a program called cyberpatriots and I was wondering how do you delete files and disable services via command prompt.

asked Oct 24 '12 at 01:05

bboyhurricane's gravatar image

bboyhurricane
146667275


to delete a file using windows command prompt either browse to the directory using "CD" (change directory) commands search through the directory using the "DIR /P/W" command when you find the file use the DEL command. for example if you want to delete a file called "file.txt" type "DEL file.txt" this will only work if you are in the directory where file.txt is. If you are not in the same directory but you know the path you can type the path for example if file.txt is on your desktop type:

DEL "C:UsersUserNameDesktopFile.txt"

stopping a service is quite simple. you can either disable the auto startup of a service using the following command:

sc config "SERVICE NAME HERE start= disabled (without quotes)

Or Stop a Service using the following command:

sc stop "SERVICE NAME HERE" (without quotes)

Hope this helps!

answered Oct 26 '12 at 07:28

Headwards's gravatar image

Headwards
4.5k6688126

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported


Join Us in the Chat Room

Tags:

×25
×17
×9

Asked: Oct 24 '12 at 01:05

Seen: 190 times

Last updated: Oct 26 '12 at 07:28