windows explorer
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
windows explorer
is there any way to get livecode to launch windows explorer at a specific address?
Re: windows explorer
Hi Da_Elf,
maybe with the "launch" command:
...
launch "url.here.com" with "path/to/shi**y/explorer.exe"
##
...
But maybe this command will only work with local files?
Otherwise you can maybe use a SHELL command?
Sorry, I'm not a Windows guy...
Best
Klaus
P.S.
If EXPLORER has been set to the "default browser" then it will start automatically when simply using:
...
launch "url.here.com"
...
maybe with the "launch" command:
...
launch "url.here.com" with "path/to/shi**y/explorer.exe"
##

...
But maybe this command will only work with local files?
Otherwise you can maybe use a SHELL command?
Sorry, I'm not a Windows guy...
Best
Klaus
P.S.
If EXPLORER has been set to the "default browser" then it will start automatically when simply using:
...
launch "url.here.com"
...
Re: windows explorer
And?SparkOut wrote:http://forums.livecode.com/viewtopic.php?f=9&t=20058
Re: windows explorer
Has information and links to launching Windows Explorer (and other cross-platform versions) at a specific location. Which I would have said before if I hadn't been on the phone and using pop-pop keyboard which is pants. What did you think it was going to have in that thread? 

Re: windows explorer
Yes, but I am quite sure, Da_Elf actually means the "Internet Explorer"! 

Re: windows explorer
Oh, well that's not at all clear from his post!
Re: windows explorer
Well, the term "at a specific address" lets me think so. 

Re: windows explorer
i ended up creating a batch file to do it and launch the bat file
Re: windows explorer
OK, but please ease our minds and tell us what "explorer" you exactly meant: Windows or Internet? 

-
- VIP Livecode Opensource Backer
- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: windows explorer
"launch url <url>" will launch a URL location in the default browser. If the user hasn't upgraded to Firefox or Chrome, on Windows the default browser will be Internet Explorer.
"launch document "<path>" will launch a document in the default application assigned to that document type. Then the document path is a folder, the default application is the file manager (on Windows that would be Windows Explorer), and it will open a window showing the contents of the specified directory.
"launch document "<path>" will launch a document in the default application assigned to that document type. Then the document path is a folder, the default application is the file manager (on Windows that would be Windows Explorer), and it will open a window showing the contents of the specified directory.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: windows explorer
oh.. my bad. i was trying to open windows explorer to a specific folder. it was stated in the first post
i used this
%SystemRoot%\explorer.exe "C:\folderpath"
i used this
%SystemRoot%\explorer.exe "C:\folderpath"
Re: windows explorer
Hm, with "address" we usually associate an internet URL!
But in your case you can simply:
...
launch document ""C:/folderpath"
...
Best
Klaus

But in your case you can simply:
...
launch document ""C:/folderpath"
...
Best
Klaus