I have made a C# app that, when opened, reads a text file and outputs the lines into the list view. I have set this to run at startup with a reg key which does open it but the app just shows an empty list view. Same thing happens when I run it from cmd but everything works fine when I just double click on the file in explorer, there are no parameters/arguments to the app so this has really confused me, any ideas are much appreciated! Thanks.
Share
Hard to tell without looking at the code that reads the file. I suspect the current dir is the problem. Make sure to specificity full path to your text file.