flat assembler
Message board for the users of flat assembler.

Index > IDE Development > Did i can open many files from text file ?

Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 815
Roman
For example i have text file. In this file many files names.
Code:
procs\procA.inc
procs\procB.inc
procs\procC.inc
procs\procD.inc
procs\procE.inc
procs\procF.inc
include\a1.inc
include\a2.inc
include\a3.inc
include\a4.inc
main.asm
    

I drop this file or set dir Fasm and fasm open all this files.

Or bat file.


Last edited by Roman on 29 Jul 2020, 18:04; edited 1 time in total
Post 29 Jul 2020, 15:08
View user's profile Send private message Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 815
Roman
And how send Fasm editor window from my program some text ?
I want create my few samll programs and ech program can send to Fasm editor window some generated text.

Or my program load my text file and send message Fasm to open one or all this files.
How do this ?

And what about support dll in fasm ?
And run Dlls list ?


Last edited by Roman on 29 Jul 2020, 15:20; edited 2 times in total
Post 29 Jul 2020, 15:14
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17669
Location: In your JS exploiting you and your system
revolution
Are you referring to fasmw? You want to have it open many files at the same time?
Post 29 Jul 2020, 15:17
View user's profile Send private message Visit poster's website Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 815
Roman
Quote:
You want to have it open many files at the same time?

Yes.


Last edited by Roman on 29 Jul 2020, 15:20; edited 1 time in total
Post 29 Jul 2020, 15:17
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17669
Location: In your JS exploiting you and your system
revolution
Moving to IDE Development forum.
Post 29 Jul 2020, 15:20
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7797
Location: Kraków, Poland
Tomasz Grysztar
You can try a batch file looking like this:
Code:
@echo off
set CMD=c:\asm\fasm\fasmw.exe
for /f "tokens=* delims=" %%G in (%1) do call :append ^"%%G^"
start %CMD%
goto :end

:append
set CMD=%CMD% %1
goto :end

:end    
Just drop your a file containing your list onto the batch file.


Last edited by Tomasz Grysztar on 29 Jul 2020, 18:38; edited 2 times in total
Post 29 Jul 2020, 15:27
View user's profile Send private message Visit poster's website Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 815
Roman
Thanks ! Work fine ! If i do on disk C

But if i do this from disk D:
I get error ---------------------------
flat assembler 1.73.04
---------------------------
Could not load file D:\Fasm.
---------------------------
ОК
---------------------------

Or if i do in c:\Fasm myfile.
myfile1.txt
D:\Fasm OpenGL4-5\Fasm OpenGL\dx11 pbr test msh\DX11 Text2.asm

The same error. Could not load file D:\Fasm.
Post 29 Jul 2020, 15:47
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7797
Location: Kraków, Poland
Tomasz Grysztar
Oh, I did not put the quotes around the paths correctly. Please try the updated version (I edited the previous post).
Post 29 Jul 2020, 18:37
View user's profile Send private message Visit poster's website Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 815
Roman
Hm. Now fasm open text from myfile.txt. I was drop on disk D:
But not open file D:\Fasm OpenGL4-5\Fasm OpenGL\dx11 pbr test msh\DX11 Text2.asm
And i see in fasm editor:
Code:
D:\Fasm OpenGL4-5\Fasm OpenGL\dx11 pbr test msh\DX11 Text2.asm
    


But if i drop on disk C: work correct.
I put new bat file in C:\Fasmw17112\
Post 29 Jul 2020, 19:55
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-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.