Computer Science Canada Can Turing lauch a Windows Explorer dialog for browsing a file? |
Author: | riveryu [ Thu Jul 03, 2008 5:28 pm ] |
Post subject: | Can Turing lauch a Windows Explorer dialog for browsing a file? |
Question is in the title. Anyone know a way? |
Author: | Dan [ Thu Jul 03, 2008 5:47 pm ] |
Post subject: | RE:Can Turing lauch a Windows Explorer dialog for browsing a file? |
From what i remember no, at least not with out using an external application. You can however make your own dialog for browsing for a file. |
Author: | DemonWasp [ Thu Jul 03, 2008 9:26 pm ] | ||
Post subject: | RE:Can Turing lauch a Windows Explorer dialog for browsing a file? | ||
Yes, you can most certainly launch explorer.exe with a given directory. Explorer can be launched by calling explorer.exe at the command-line, and in that case its first argument is the location to start in, so you can do it like this:
Just replace the C:\Program Files with wherever you want to be. Remember that if it has spaces you'll need to put quotes (escaped quotes, so \" ) around it, and that any backslashes in the path need to be escaped as well ( \\ ). |
Author: | Tony [ Thu Jul 03, 2008 9:29 pm ] |
Post subject: | RE:Can Turing lauch a Windows Explorer dialog for browsing a file? |
It will lunch the Explorer, but other than "success" it will not return any more information back to the Turing program. |
Author: | DemonWasp [ Thu Jul 03, 2008 10:05 pm ] |
Post subject: | RE:Can Turing lauch a Windows Explorer dialog for browsing a file? |
This is true. The question is slightly ambiguous, so I should also mention that GUI.OpenFile[Full] and GUI.SaveFile[Full] will let you use the Windows Open/Save dialogs like you're used to in other apps. But no, there's no real way of speaking to another application with Turing. It's either in Turing, and in your program, or it can only be spawned, never contacted again. |
Author: | andrew. [ Sun Jul 20, 2008 3:38 pm ] |
Post subject: | RE:Can Turing lauch a Windows Explorer dialog for browsing a file? |
GUI.OpenFile and GUI.SaveFile is in the Turing 4.1 F10 help, but when I try using it, it's not recognizing the command. It's not even coloured black with the syntax colouring and it tells me that OpenFile or SaveFile aren't part of the GUI module. What version is this feature in? |