How do i delete files

Hi all i am new to pascal just started to use it in our course to get use to "programming conspts " even though i know vb any way how do i delete file because i want to delete this spyware file everythime my pc loads up because everytime i reload my pc it is always there so how do i delete files thanks please help
from
mark

Comments

  • : Hi all i am new to pascal just started to use it in our course to get use to "programming conspts " even though i know vb any way how do i delete file because i want to delete this spyware file everythime my pc loads up because everytime i reload my pc it is always there so how do i delete files thanks please help
    : from
    : mark
    :
    :
    I have read your problem, what you really want is a program that will remove any spyware files on your computer. Well you are in luck.

    If you goto the following link http://companion.yahoo.com/ you can download the Yahoo Toolbar which includes a program called Anti-Spy
    which will delete any spyware that is on your computer.

    If there is any other help you want regarding Pascal, just write to me.

  • see this program as example for how to delete files.



    program bla;
    var
    filevar : file;



    begin
    assign(filevar,'c:programsspyware.exe');
    {the location is only an example}
    erase(filevar);
    end.



    there are more file commands you can see in the help topics like
    reset,rewrite,read,write.
    (the read and write commands can also read and write to files, not only write you on screen and recieving keys)

    good luck
    dolev
  • :
    : see this program as example for how to delete files.
    :
    :
    :
    : program bla;
    : var
    : filevar : file;
    :
    :
    :
    : begin
    : assign(filevar,'c:programsspyware.exe');
    : {the location is only an example}
    : erase(filevar);
    : end.
    :
    :
    :
    : there are more file commands you can see in the help topics like
    : reset,rewrite,read,write.
    : (the read and write commands can also read and write to files, not only write you on screen and recieving keys)
    :
    : good luck
    : dolev
    :
    Hi there thanks i have tried that but it says access denied how do i get around this
    from
    mark
  • : :
    : : see this program as example for how to delete files.
    : :
    : :
    : :
    : : program bla;
    : : var
    : : filevar : file;
    : :
    : :
    : :
    : : begin
    : : assign(filevar,'c:programsspyware.exe');
    : : {the location is only an example}
    : : erase(filevar);
    : : end.
    : :
    : :
    : :
    : : there are more file commands you can see in the help topics like
    : : reset,rewrite,read,write.
    : : (the read and write commands can also read and write to files, not only write you on screen and recieving keys)
    : :
    : : good luck
    : : dolev
    : :
    : Hi there thanks i have tried that but it says access denied how do i get around this
    : from
    : mark
    :

    It says access denied because you cant that you are currently running the program in memory.
    So you have to take it out of memory first, ie. delete the corresponding process.

    Most of the the spyware process name is masked to something else to
    avoid people stopping them.

    So what to do: start your computer in safe mode (DOS), so that you are in command line, not windows. (Press F8 just before windows boots up and you get an option list)

    if you know the path of the program TYPE:

    DEL {path} - This will delete the contents of the folder.
    then rmdir {path} - This will remove the folder itself.

    You cannot remove the folder without deleting the contents first
    (Just how dos works)
    EG: C:> DEL C:Program FilesSpyware
    C:> RMDIR C:Program filesSpyware

    The reason why you can do this in dos is because windows hasn't started yet .'. the spyware program is not in memory yet.

    I know this has nothing to do with pascal but it solved my spyware problem.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories