Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
writing a string to standard out
#9
.
Many thanks Gintaras,

but what should I do with this?

This flashes a new console window for a fractal of a second only.



I don't want to create a new console window!
If I call my exe from a console window, I just want print out the message to that console.

myMacro:
Code:
Copy      Help
;/exe


ARRAY(str) a
ParseCommandLine(_command a)

int i
str s
for i 0 a.len
    s.format( "%s" a[i] )
    OutConsole s


Usage:
Code:
Copy      Help
C:\>my.exe "huhu"
huhu

C:\>




In future, I want to take console input "_command ", manipulate the string, and write back to console window:
Code:
Copy      Help
C:\>my.exe path "C:\Temp\Test\file.ext"
C:\Temp\Test

C:\>
C:\>my.exe base  "C:\Temp\Test\file.ext"
file

C:\>


Is this possible with Quick Macros?
.


Messages In This Thread

Forum Jump:


Users browsing this thread: 12 Guest(s)