My application requires a txt file to be opened and displayed. the problem is, we are able to launch the notepad using "systemexec.vi". but we want to launch the notepad with the appropraite file opened along with launching of notepad.exe.
we don't want the user to interact with the "open file dialouge box" of the note pad appliation.we just want the user to view directly the required txt file.
notepad accept commad line argumets so you can call it passing arguments such as the file name to open. Try this "notepad.exe " at the command line input of the system exec function.
Hi, All you have to do is use the "systemexe.vi" and generate a path like for example :- notepad.exe "C:\Documents and Settings\viveks\Desktop\ftp.txt" this is given to the command line argument in systemexe.vi this will do your job. cheers vicky
If you only want to display a text file you can load it and use a string indicator inside Labview. So your user will never have to deal with notepad.exe (as he can access the menu of notepad anyway...).
Best regards, GerdW
using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
you're not able to open the report? Why? Can notepad open the text file? Can Labview open the textfile? Why do you want to display the text using notepad?
Best regards, GerdW
using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Hi, Your command should be .... notepad.exe "C:\Documents and Settings\raghavendra\Desktop\report.txt" ... not only the path,try this it shall work. cheers vicky