flat assembler
Message board for the users of flat assembler.
Index
> IDE Development > fasmw: two features request |
Author |
|
mike.dld 12 Sep 2004, 11:29
2) second that. Windows (XP) prevents to write to the hidden files So, propose is to remember previously set access flags, clear them all, compile and set saved flags again. This will cause no such errors like 'write failed'.
|
|||
12 Sep 2004, 11:29 |
|
Vasilev Vjacheslav 12 Sep 2004, 12:05
i know how to remove R\O flag but i don't want to remove it each time manually
Code: ... invoke GetFileAttributes,szTargetFilePath and eax,FILE_ATTRIBUTE_READONLY cmp eax,FILE_ATTRIBUTE_READONLY jnz @F invoke SetFileAttributes,szTargetFilePath,FILE_ATTRIBUTE_NORMAL @@: ... ps. i can modify source of Fasm, but i am not an author of fasm _________________ [not enough memory] |
|||
12 Sep 2004, 12:05 |
|
scientica 12 Sep 2004, 12:23
Code: ... invoke GetFileAttributes,szTargetFilePath test eax,FILE_ATTRIBUTE_READONLY jnz @F invoke SetFileAttributes,szTargetFilePath,FILE_ATTRIBUTE_NORMAL @@: ... should do it a little "faster" (one or two clocks ;) _________________ ... a professor saying: "use this proprietary software to learn computer science" is the same as English professor handing you a copy of Shakespeare and saying: "use this book to learn Shakespeare without opening the book itself. - Bradley Kuhn |
|||
12 Sep 2004, 12:23 |
|
Vasilev Vjacheslav 12 Sep 2004, 16:20
Code:
...
invoke GetFileAttributes,szTargetFilePath
...
scientica, returned eax in this case maybe not only FILE_ATTRIBUTE_READONLY, but and others styles (FILE_ATTRIBUTE_READONLY+FILE_ATTRIBUTE_HIDDEN), are you sure that you're right? in my code i am extract FILE_ATTRIBUTE_READONLY from eax if it present and remove it, irrespective of, how many attributes. mike.dld, after my project (exe) set R\O to self, FASM can't compile exe again (because R\O), and then i open folder of my project, sets attributes to normal manually, it takes much time for me (fasm can do it faster) _________________ [not enough memory] |
|||
12 Sep 2004, 16:20 |
|
Tomasz Grysztar 12 Sep 2004, 17:17
I have added "Open folder" to tab-right-click menu - hope it helps.
|
|||
12 Sep 2004, 17:17 |
|
Vasilev Vjacheslav 12 Sep 2004, 17:57
Privalov wrote: I have added "Open folder" to tab-right-click menu - hope it helps. big thanks _________________ [not enough memory] |
|||
12 Sep 2004, 17:57 |
|
mike.dld 12 Sep 2004, 19:11
Vasilev Vjacheslav
I had a similar problem - my program needed to be hidden because it was scanning files in its directory and skiping hidden files, and it was the best solution to make executable hidden to skip itself (MZ-program). |
|||
12 Sep 2004, 19:11 |
|
Matrix 12 Sep 2004, 20:31
Hello Privalov
i had a look at your little developments, nice work, keep it up ! MATRIX |
|||
12 Sep 2004, 20:31 |
|
bubach 12 Nov 2004, 18:34
must say that i love fasm and fasmw!
thanks for developing it! |
|||
12 Nov 2004, 18:34 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.