flat assembler
Message board for the users of flat assembler.

Index > IDE Development > fasmw: two features request

Author
Thread Post new topic Reply to topic
Vasilev Vjacheslav



Joined: 11 Aug 2004
Posts: 392
Vasilev Vjacheslav 12 Sep 2004, 10:49
1) 'Open project folder' - in menu Run (imho, very useful)
2) I have a project that sets to self R\O (read-only) flag, and when i try to recompile it FASM says no access. It could be fine, if FASM checked presense of R\O attribute and removed it.

ps. sorry for orphographical mistakes, my native language is russian

_________________
[not enough memory]
Post 12 Sep 2004, 10:49
View user's profile Send private message Reply with quote
mike.dld



Joined: 03 Oct 2003
Posts: 235
Location: Belarus, Minsk
mike.dld 12 Sep 2004, 11:29
2) second that. Windows (XP) prevents to write to the hidden files Sad 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'.
Post 12 Sep 2004, 11:29
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
Vasilev Vjacheslav



Joined: 11 Aug 2004
Posts: 392
Vasilev Vjacheslav 12 Sep 2004, 12:05
i know how to remove R\O flag Very Happy 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 Smile

_________________
[not enough memory]
Post 12 Sep 2004, 12:05
View user's profile Send private message Reply with quote
scientica
Retired moderator


Joined: 16 Jun 2003
Posts: 689
Location: Linköping, Sweden
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
Post 12 Sep 2004, 12:23
View user's profile Send private message Visit poster's website Reply with quote
Vasilev Vjacheslav



Joined: 11 Aug 2004
Posts: 392
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]
Post 12 Sep 2004, 16:20
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8357
Location: Kraków, Poland
Tomasz Grysztar 12 Sep 2004, 17:17
I have added "Open folder" to tab-right-click menu - hope it helps.
Post 12 Sep 2004, 17:17
View user's profile Send private message Visit poster's website Reply with quote
Vasilev Vjacheslav



Joined: 11 Aug 2004
Posts: 392
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]
Post 12 Sep 2004, 17:57
View user's profile Send private message Reply with quote
mike.dld



Joined: 03 Oct 2003
Posts: 235
Location: Belarus, Minsk
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).
Post 12 Sep 2004, 19:11
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
Matrix



Joined: 04 Sep 2004
Posts: 1166
Location: Overflow
Matrix 12 Sep 2004, 20:31
Hello Privalov
i had a look at your little developments,
nice work, keep it up !

MATRIX
Post 12 Sep 2004, 20:31
View user's profile Send private message Visit poster's website Reply with quote
bubach



Joined: 17 Sep 2004
Posts: 341
Location: Trollhättan, Sweden
bubach 12 Nov 2004, 18:34
must say that i love fasm and fasmw!
thanks for developing it!
Post 12 Nov 2004, 18:34
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.