Wednesday, November 18, 2009

How to delete files which deny to be deleted!

This is a usual problem. We delete a file and a message like this appears: "The action can't be completed because the file is opened by another process!" We can do 2 simple thinks to delete them.
1) Open the command prompt: press start, type cmd, press enter.
on the command line type chdir "the path of the file" (path of the file i.e. C:\users\user\desktop)
press enter
then type del /f "the name of the file including format i.e (test.txt)"
press enter.
chdir=change directory
/f=force deleting of read only files
if this fails go to method 2
2) open notepad

@echo off
del /f "path of the file including file name"

left click file
select save as
choose all files
write delete.bat
save in c:\
open registry
(start type regedit press enter)
go to Computer\HKEY_LOCAL_MACHINE\SOFTWARE|Microsoft\Windows\CurrentVersion\Run
right click, new, string value.
name it delete
right click on it ->modify->type "C:\delete.bat"
restart your pc
remember to delete the value after restart (see the post below Control Startup Applications)
By Vasilis Nicolaou

Sunday, November 15, 2009

Control Startup Applications

We are going to see how to control our start-up applications with a little registry operation...
First, a start-up application is a program that is executed as soon as Windows starts. The applications are started by the windows explorer, and the services, by the svchost.exe .
But how do this programs know which programs shall be executed? They read some keys in the registry that tell them so... We are going to learn how to modify this keys, so we won't need to download a program to do the job, and of course to praise ourselves to our friends :)
We open the registry editor with these steps: In windows vista: press start button and in the search bar type: regedit and press enter. Click continue to continue(duh!).
In windows XP: press start button, press run, type regedit, press enter.

The registry editor will open. Follow this path:
In the right will appear some keys. In the column 'name' you can see the programs' names, and under the data their paths. Note that the names mean nothing for the computer, it's the data that is important. A virus can avail from this by putting it's path in the data of an innocent program and run itself rather than that program...
If we want to stop a program from executed with the windows we simply delete the key:
right click on the key, click delete. If we want a program to run with the windows we right click in the empty space, new>string value, and we write the path of the program.

By Vasilis Nicolaou

Binary code

Hello lads!!! No time no see... Read this article to find out how to convert a number into a binary code or reverse...
First, let's say that binary code is a line of n numbers 1 or zero...
e.g. this 1001100...
If we take it logically 1 represents true and 0 false. If we had an electronic circuit, 1 means that electricity runs through it and 0 it's not...
So, let's go to the mathematical part now... Think about a calculator... How does it understand numbers and how does the calculations? With binary code... We are now going to see how the binary code represents a number leaving the engineering part out of this unit.
Think about a table of one column or row that has n cells... In that cells we put 1 (one) or 0 (zero). The function that returns the decimal (normal) number is working like this:
The first cell represents the 2^0, the second 2^1 the third 2^2.... It's like this:
the table:
If in a cell there's the number 1 we add 2^index and we add nothing if there's a zero.
Remember that in a line the index 0 represents the last number we see...
Let's look an example.
example 1. Find the decimal number that is represented by the binary : 1001110
In the above example we see a zero in the cell with index 0 so we ignore it or we multiply 2^0 with zero (it is the same thing, duh!).
Now if we have a number e.g 100 we do reverse work. we found the number power of 2 that is the closest to our number. In this case it is the number 64 i.e 2^6. 100-64=36. 32 is the closest, 32=2^5. 36-32=4. 4=2^2. So we are going to put the number 1 in the cells with index 6, 5 and 2. 100=1100100
You can practice making your own binary codes. To confirm your results you can download DBHC.exe from our blog.
P.S. If there are grammatical errors on the above article please let us know in order to fix it.
By Vasilis Nicolaou