windows explorer

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Da_Elf
Posts: 311
Joined: Sun Apr 27, 2014 2:45 am

windows explorer

Post by Da_Elf » Thu Dec 17, 2015 12:54 pm

is there any way to get livecode to launch windows explorer at a specific address?

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: windows explorer

Post by Klaus » Thu Dec 17, 2015 12:59 pm

Hi Da_Elf,

maybe with the "launch" command:
...
launch "url.here.com" with "path/to/shi**y/explorer.exe"
## :D
...
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"
...

SparkOut
Posts: 2947
Joined: Sun Sep 23, 2007 4:58 pm

Re: windows explorer

Post by SparkOut » Thu Dec 17, 2015 9:30 pm


Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: windows explorer

Post by Klaus » Fri Dec 18, 2015 1:04 pm


SparkOut
Posts: 2947
Joined: Sun Sep 23, 2007 4:58 pm

Re: windows explorer

Post by SparkOut » Fri Dec 18, 2015 5:56 pm

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? :D

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: windows explorer

Post by Klaus » Fri Dec 18, 2015 5:59 pm

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

SparkOut
Posts: 2947
Joined: Sun Sep 23, 2007 4:58 pm

Re: windows explorer

Post by SparkOut » Fri Dec 18, 2015 6:02 pm

Oh, well that's not at all clear from his post!

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: windows explorer

Post by Klaus » Fri Dec 18, 2015 6:22 pm

Well, the term "at a specific address" lets me think so. :D

Da_Elf
Posts: 311
Joined: Sun Apr 27, 2014 2:45 am

Re: windows explorer

Post by Da_Elf » Fri Dec 18, 2015 6:34 pm

i ended up creating a batch file to do it and launch the bat file

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: windows explorer

Post by Klaus » Fri Dec 18, 2015 6:48 pm

OK, but please ease our minds and tell us what "explorer" you exactly meant: Windows or Internet? :D

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: windows explorer

Post by FourthWorld » Fri Dec 18, 2015 7:26 pm

"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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Da_Elf
Posts: 311
Joined: Sun Apr 27, 2014 2:45 am

Re: windows explorer

Post by Da_Elf » Tue Dec 22, 2015 5:18 pm

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"

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: windows explorer

Post by Klaus » Tue Dec 22, 2015 5:48 pm

Hm, with "address" we usually associate an internet URL! :D

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


Best

Klaus

Post Reply