Page 1 of 1
windows explorer
Posted: Thu Dec 17, 2015 12:54 pm
by Da_Elf
is there any way to get livecode to launch windows explorer at a specific address?
Re: windows explorer
Posted: Thu Dec 17, 2015 12:59 pm
by Klaus
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"
...
Re: windows explorer
Posted: Thu Dec 17, 2015 9:30 pm
by SparkOut
Re: windows explorer
Posted: Fri Dec 18, 2015 1:04 pm
by Klaus
Re: windows explorer
Posted: Fri Dec 18, 2015 5:56 pm
by SparkOut
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
Posted: Fri Dec 18, 2015 5:59 pm
by Klaus
Yes, but I am quite sure, Da_Elf actually means the "Internet Explorer"!

Re: windows explorer
Posted: Fri Dec 18, 2015 6:02 pm
by SparkOut
Oh, well that's not at all clear from his post!
Re: windows explorer
Posted: Fri Dec 18, 2015 6:22 pm
by Klaus
Well, the term "at a specific
address" lets me think so.

Re: windows explorer
Posted: Fri Dec 18, 2015 6:34 pm
by Da_Elf
i ended up creating a batch file to do it and launch the bat file
Re: windows explorer
Posted: Fri Dec 18, 2015 6:48 pm
by Klaus
OK, but please ease our minds and tell us what "explorer" you exactly meant: Windows or Internet?

Re: windows explorer
Posted: Fri Dec 18, 2015 7:26 pm
by FourthWorld
"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.
Re: windows explorer
Posted: Tue Dec 22, 2015 5:18 pm
by Da_Elf
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"
Re: windows explorer
Posted: Tue Dec 22, 2015 5:48 pm
by Klaus
Hm, with "address" we usually associate an internet URL!
But in your case you can simply:
...
launch document ""C:/folderpath"
...
Best
Klaus