キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

Display data in Command Prompt

Hi,

I am logging data in text file in parallel I would like to display the CMD prompt as console output.

Something like Printf function.

How to achieve this.

Thanks,

Visuman

0 件の賞賛
メッセージ1/8
6,406件の閲覧回数

Can you made string indicator and update it?

Or you want write in win CMD?

0 件の賞賛
メッセージ2/8
6,404件の閲覧回数

I want to write in windows command prompt.

0 件の賞賛
メッセージ3/8
6,397件の閲覧回数

there is the "System Exec.vi".

and cmd /c echo "Hello World!" for the 'command line' input will print to the command line. but a new window will open and close immediately.

 

even if you start you VI.exe from the cmd window, output from the system exec vi will not be seen there.

 

the best solution would be to log to file, and you could use the windows equivalent of 'tail -f FILE'.

 

but i'd like to be corrected.


If Tetris has taught me anything, it's errors pile up and accomplishments disappear.
0 件の賞賛
メッセージ4/8
6,372件の閲覧回数

Yeah agree, I don't want to open each time separate CM window.

I do open the EXE with batch file and I would like to update the status of exe in the same CMD prompt.

 

Thanks Visuman

0 件の賞賛
メッセージ5/8
6,367件の閲覧回数

a hackish solution:

 

save the following as "run.ps1"

Start-Process "BASEPATH\labview-cli-test.exe" -WindowStyle Hidden
Get-Content "BASEPATH2\test-logfile.txt" -Wait

then from a powershell run "run.ps1"

 

this will execute labview-cli-test.exe in the background, and then it will wait on changes to test-logfile.txt until you stop with CTRL+C.

 

note that the test-logfile.txt must exist when the command is executed


If Tetris has taught me anything, it's errors pile up and accomplishments disappear.
0 件の賞賛
メッセージ6/8
6,358件の閲覧回数

Hi,

While executing showing error unknown parameter "run.ps1"

in CMD window.

0 件の賞賛
メッセージ7/8
6,324件の閲覧回数

as i said in my post, this is a powershell script,

CMD prompt does not have the necessary tools.


If Tetris has taught me anything, it's errors pile up and accomplishments disappear.
0 件の賞賛
メッセージ8/8
6,317件の閲覧回数