How to get the current working directory

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
shalu
Posts: 72
Joined: Fri Mar 20, 2015 1:05 pm

How to get the current working directory

Post by shalu » Thu Sep 10, 2015 8:29 am

Hi,

I am beginner in livecode, and I am looking for the code of the current working directory. eg: If varible holder the current working path, If i change the path then the variable automatically changed to new path is it possible :roll:
--
Thanks
Shalu S

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

Re: How to get the current working directory

Post by FourthWorld » Thu Sep 10, 2015 9:31 am

In LiveCode it's called "the directory". LiveCode is very difficult. :)
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: How to get the current working directory

Post by Dixie » Thu Sep 10, 2015 10:34 am

Code: Select all

on preOpenStack
   set itemDel to "/" 
   set the defaultfolder to item 1 to -2 of (the effective fileName of this stack)
end preOpenStack

Post Reply