flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > [feature request] cmd> fasm C:\bin\"hello world" |
Author |
|
revolution 17 Mar 2008, 05:21
The workaround is this:
Code: fasm.exe "c:\bin\%1.asm" |
|||
17 Mar 2008, 05:21 |
|
nik 17 Mar 2008, 05:24
no it isn't
if Code: %1=="hello world" then Code: "c:\bin\%1.asm"=="c:\bin\"hello world".asm" again internal quotes and error Last edited by nik on 17 Mar 2008, 05:53; edited 1 time in total |
|||
17 Mar 2008, 05:24 |
|
nik 17 Mar 2008, 05:30
actually works this:
Code:
fasm.exe "c:\bin\%~n1.asm"
and it confuses |
|||
17 Mar 2008, 05:30 |
|
Grom PE 17 Mar 2008, 07:33
Code: > fasm.exe c:\bin\"hello world".asm nik, never expect this to work. It would be actually three parameters. If you want to remove quotes, use %~1 for substitution. It's still not clear, what are you trying to do? |
|||
17 Mar 2008, 07:33 |
|
nik 17 Mar 2008, 08:15
2 Grom PE
basically i want to pass file name as a parameter to fasmN.cmd and add path and extension if there's a space in a file name i can't do this: > fasmN hello world because there would be 2 params: %1==hello %2==world so i do this: > fasmN "hello world" and Code: fasm.exe c:\bin\%1.asm doesn't work ! and i DO expect this would work because my own C++ app using standard header <fstream> handles such paths correctly |
|||
17 Mar 2008, 08:15 |
|
nik 17 Mar 2008, 08:26
Grom PE wrote:
yeah actually i didn't now this but it would be better if %1 worked too though |
|||
17 Mar 2008, 08:26 |
|
shoorick 17 Mar 2008, 10:01
do not see here any problem. call your file hello.asm - this definetly will help.
|
|||
17 Mar 2008, 10:01 |
|
nik 17 Mar 2008, 10:51
2 shoorick
yes you're right but i want my cmd-files be more *general* because i use them for my C-compiler (my task at university) |
|||
17 Mar 2008, 10:51 |
|
f0dder 17 Mar 2008, 14:21
nik: internal quotation marks aren't standard, neither Notepad or Notepad++ handles them. "type" from a command prompt does, though.
|
|||
17 Mar 2008, 14:21 |
|
nik 18 Mar 2008, 05:17
2 f0dder
too bad of me -- i have really thought otherwise thanks for the info |
|||
18 Mar 2008, 05:17 |
|
sinsi 18 Mar 2008, 05:47
Have you looked at %* instead of %1 - it gives you the whole command-line parameter, including spaces (I think).
|
|||
18 Mar 2008, 05:47 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.