12-07-2018 07:43 AM
So Im actually creating a Program that would create a folder with a command prompt and then give you as feedback (as Standart output with echo) that the folder have been created (this is a test program I wrote to learn how to use cmd with Labview).
So my problem is System Exc open another cmd instead of sending the message / prompt to the cmd that is already open that I used to send the original prompt.
The prompt that that opens the program and create the folder is --/On.
Any idea how to do this?
12-07-2018 07:48 AM
Hi max,
So my problem is System Exc open another cmd instead of sending the message / prompt to the cmd that is already open
Because you asked LabVIEW to start another cmd shell…
LabVIEW is not a command line tool, but it uses the full graphical interface of Windows. So it is very hard to send messages back to the CMD shell where you started your LabVIEW tool.
There have been discussions on this topic just some weeks ago, so you might try the search feature of this board!
Btw. why do you attach images of your code instead of the code? (Why not attach snippets instead?)
12-07-2018 08:12 AM
Here is the vi.
I have been searching for that topic but sadly I didn't find one. but hey now at least I know there is one. I'll continue looking for it. if you suddenly remember please tell ne 🙂
12-07-2018 08:25 AM
It may be possible to do this by accessing the CMD prompt thru .NET. I've suggested this several times on this board but have never used it. So you'll need to try it out for yourself. I've attached a link to how this is done in C#, should be similar to this in LabVIEW.
https://stackoverflow.com/questions/691716/running-cmd-commands-via-net
12-07-2018 12:09 PM
Try this:
BTW: I haven't tried it because I don't understand what it's supposed to do