From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
06-08-2018 05:21 AM
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
06-08-2018 05:26 AM
Can you made string indicator and update it?
Or you want write in win CMD?
06-08-2018 05:34 AM
I want to write in windows command prompt.
06-08-2018 07:04 AM
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.
06-08-2018 07:32 AM
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
06-08-2018 08:05 AM - edited 06-08-2018 08:08 AM
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
06-12-2018 02:10 AM
Hi,
While executing showing error unknown parameter "run.ps1"
in CMD window.
06-12-2018 04:42 AM
as i said in my post, this is a powershell script,
CMD prompt does not have the necessary tools.