To delete a windows Service there is a practical and easy command.
Open a command prompt and digit the command:
sc delete ServiceName
ServiceName is the name you see when you open the property tab of a service in Windows.
NOTE
If "sc delete ServiceName" does not succeed it means you don't have enough privileges to execute this command. In this case open the command prompt as administrator and retry.
My Tips and Tricks for C#, C, C++, MatLAB, Java, LaTeX, Python and more!
Wednesday, June 22, 2016
Monday, June 13, 2016
Monday, June 6, 2016
Add a new line to a file (ANT)
How do you append lines in ANT?
Two basic things to know:
<echo message="First line. ${line.separator}" file="test_file.txt"/>
<echo message="Second line ! ${line.separator}" file="test_file.txt" append="true"/>
Notice the "append" attribute on the second echo!
That's all!
Source:
https://ant.apache.org/manual/Tasks/echo.html
Two basic things to know:
- echo task
- The ant property ${line.separator}
<echo message="First line. ${line.separator}" file="test_file.txt"/>
<echo message="Second line ! ${line.separator}" file="test_file.txt" append="true"/>
Notice the "append" attribute on the second echo!
That's all!
Source:
https://ant.apache.org/manual/Tasks/echo.html
Subscribe to:
Posts (Atom)