Jon Sweeney Posted August 2, 2007 Report Share Posted August 2, 2007 Is there a way to open a file dialog in Windows 'details' mode, preferably sorted by date? It seems that I have done this before (on a different pc) although I may be imagining it. My windows explorer view default is 'details' mode, but that doesn't seem to matter. Thank you. Quote Link to comment
MikaelH Posted August 2, 2007 Report Share Posted August 2, 2007 I guess you have to modify the registry (somewhere), before opening the dialog :-( You might try .net calls instead. http://www.vi-lib.com/user.lib/OpenFileDialogBox.html Maybe there is a way to solve it that way. //Mikael Quote Link to comment
Jon Sweeney Posted August 7, 2007 Author Report Share Posted August 7, 2007 I found a way to do what I needed. I am attaching the vi in case it can be of use to anyone else. It calls Windows functions (Windows>System32>user32.dll) so that the file dialog presented by the Open_Create_Replace File function is viewed in the user-specified mode (eg, details, icons, thumbnails, etc) , instead of always "list"mode. The calling sequence is the same as for the Open/Create/Replace File function, with the added parameter "View Type", whose value is ring selectable. Thanks to all who replied. Jon Quote Link to comment
orko Posted August 7, 2007 Report Share Posted August 7, 2007 Thanks! I know I tried to accomplish this some time in the past...this will indeed become useful in future projects. One note, you forgot to include the "wait ms with err terminals.vi". I'm assuming that it is just what it says it is, a subVI with a wait ms primative inside a sequence with err terminal input/output? Quote Link to comment
Jon Sweeney Posted August 7, 2007 Author Report Share Posted August 7, 2007 QUOTE(orko @ Aug 6 2007, 11:23 AM) Thanks! I know I tried to accomplish this some time in the past...this will indeed become useful in future projects.One note, you forgot to include the "wait ms with err terminals.vi". I'm assuming that it is just what it says it is, a subVI with a wait ms primative inside a sequence with err terminal input/output? Sorry. It's just a wrapper around wait ms, with error terminals for easier dataflow connection. It's trivial, but I'll include it for completeness. Thanks. Jon Quote Link to comment
jbrohan Posted August 8, 2007 Report Share Posted August 8, 2007 Hi Jon This looks very useful. Could you kindly post the Block Diagram as a JPEG since I am still on LV 7.0. I'll post it back if you like! John Quote Link to comment
Jon Sweeney Posted August 8, 2007 Author Report Share Posted August 8, 2007 QUOTE(jbrohan @ Aug 7 2007, 03:42 AM) Hi JonThis looks very useful. Could you kindly post the Block Diagram as a JPEG since I am still on LV 7.0. I'll post it back if you like! John John, I am attaching the image. The only difference between the True and False cases is that "File Path" is connect in the False case. Also, I have slightly updated the version to allow for a file pattern and start path for the dialog. Jon Quote Link to comment
vovka1965 Posted March 2, 2014 Report Share Posted March 2, 2014 Are there still attachments available for this thread? Could some one kindly repost? THanks, Vlad Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.