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 »

is there any way to get livecode to launch windows explorer at a specific address?
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: windows explorer

Post by Klaus »

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: 2984
Joined: Sun Sep 23, 2007 4:58 pm

Re: windows explorer

Post by SparkOut »

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

Re: windows explorer

Post by Klaus »

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

Re: windows explorer

Post 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? :D
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: windows explorer

Post by Klaus »

Yes, but I am quite sure, Da_Elf actually means the "Internet Explorer"! :D
SparkOut
Posts: 2984
Joined: Sun Sep 23, 2007 4:58 pm

Re: windows explorer

Post by SparkOut »

Oh, well that's not at all clear from his post!
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: windows explorer

Post by Klaus »

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 »

i ended up creating a batch file to do it and launch the bat file
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: windows explorer

Post by Klaus »

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: 10103
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: windows explorer

Post 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.
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 »

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: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: windows explorer

Post by Klaus »

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