flat assembler
Message board for the users of flat assembler.
Index
> Windows > How to delete files from program ? |
Author |
|
Spool 16 Jan 2013, 19:30
[ Post removed by author. ]
Last edited by Spool on 17 Mar 2013, 04:20; edited 1 time in total |
|||
16 Jan 2013, 19:30 |
|
typedef 16 Jan 2013, 19:31
Are you making a temporally file?You can use the FILE_DELETE_ON_CLOSE flag.
|
|||
16 Jan 2013, 19:31 |
|
shutdownall 16 Jan 2013, 19:35
Spool wrote: I had that issue. Your application is still executing, try check task manager. No it is not and there is no open file handle to this file. I checked it with this utility: http://technet.microsoft.com/en-us/sysinternals/bb896655.aspx And there is the question why it is possible to delete the file manually but not from my program. Delete is possible even when the program runs. |
|||
16 Jan 2013, 19:35 |
|
shutdownall 16 Jan 2013, 19:36
typedef wrote: Are you making a temporally file?You can use the FILE_DELETE_ON_CLOSE flag. Unfortunately not because I want to keep the file after close but rebuild it with this application if needed. In fact it is a special FASM application and it's the converted output in a special WAV file. |
|||
16 Jan 2013, 19:36 |
|
Spool 16 Jan 2013, 19:45
[ Post removed by author. ]
Last edited by Spool on 17 Mar 2013, 04:19; edited 1 time in total |
|||
16 Jan 2013, 19:45 |
|
shutdownall 16 Jan 2013, 20:03
Spool wrote: Maybe this, your antivirus is preventing to delete your file. I hate Comodo. Bingo ! I didn't think at that point. Yes, it was executed in a sandbox. And yes, I have Comodo running. And now it works after removing this application to "trustable applications". The behaviour was strange but now I understand why I can delete the file in explorer but could not from application before. Thanks for this hint. |
|||
16 Jan 2013, 20:03 |
|
Spool 16 Jan 2013, 20:08
[ Post removed by author. ]
Last edited by Spool on 17 Mar 2013, 04:19; edited 1 time in total |
|||
16 Jan 2013, 20:08 |
|
Spool 16 Jan 2013, 20:12
[ Post removed by author. ]
Last edited by Spool on 17 Mar 2013, 04:19; edited 1 time in total |
|||
16 Jan 2013, 20:12 |
|
shutdownall 16 Jan 2013, 20:18
I found out, that Comodo executes a file in the sandbox when started from FASM (compiling a different FASM version with FASM and start with F9).
Even if I click on "dont execute in sandbox" it executes in the sandbox when started from FASM. If I open the file directly, it does not start in the sandbox. |
|||
16 Jan 2013, 20:18 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.