05-24-2014, 10:42 AM
.
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:
Usage:
In future, I want to take console input "_command ", manipulate the string, and write back to console window:
Is this possible with Quick Macros?
.
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:
;/exe
ARRAY(str) a
ParseCommandLine(_command a)
int i
str s
for i 0 a.len
s.format( "%s" a[i] )
OutConsole s
Usage:
In future, I want to take console input "_command ", manipulate the string, and write back to console window:
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?
.