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
-
Subas
- Posts: 32
- Joined: Mon May 20, 2013 5:15 am
Post
by Subas » Thu Jul 18, 2013 12:44 am
Dear Klaus and Friends.
I re-checked based on Klaus advice and found that this connection via IP does not work.
Can some please point me to the right direction how to connect to an IP base directory as per below codes.
Code: Select all
set the defaultFolder to ("\\10.2.260.2\messages\" + the text of field "firstField" + "\" + the text of field "secondField")
dear Klaus.
thanks for the tip and your right it does not work.
Thank you
-
Klaus
- Posts: 14177
- Joined: Sat Apr 08, 2006 8:41 am
-
Contact:
Post
by Klaus » Thu Jul 18, 2013 11:43 am
Hi Subas,
hm, I never worked with this, nor am I am windows expert (Mac guy!

) but I think
this needs to be mounted as a volume, before Livecode can acces that folder.
Best
Klaus
-
Simon
- VIP Livecode Opensource Backer

- Posts: 3901
- Joined: Sat Mar 24, 2007 2:54 am
Post
by Simon » Thu Jul 18, 2013 9:53 pm
That "+" (plus sign) in your code isn't right is it?
LC uses "&" to concatenate strings.
Not that I'm saying changing your code will make the end results any different.
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
-
Klaus
- Posts: 14177
- Joined: Sat Apr 08, 2006 8:41 am
-
Contact:
Post
by Klaus » Fri Jul 19, 2013 10:38 am
Hi Simon,
the wrong + concatenator has already been discussed in another thread.
I think this is just a copy/paste thing...
...
set the defaultFolder to ("//10.2.260.2/messages/" & the text of field "firstField" & "/" & the text of field "secondField")
...
Problem is, that you cannot set the folder to an URL.
Best
Klaus
-
Subas
- Posts: 32
- Joined: Mon May 20, 2013 5:15 am
Post
by Subas » Sun Jul 21, 2013 11:57 pm
Dear Simon & Klaus.
Thanks for the comments and advice . I am not sure what to do now.
Best regards
Subas
-
Simon
- VIP Livecode Opensource Backer

- Posts: 3901
- Joined: Sat Mar 24, 2007 2:54 am
Post
by Simon » Mon Jul 22, 2013 1:03 am
Hi Subas,
Can you see that drive in Windows Explorer?
From there if you right click can you "Map network drive"?
You probably have already tried this and I'm just making a lot of noise.
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
-
Subas
- Posts: 32
- Joined: Mon May 20, 2013 5:15 am
Post
by Subas » Mon Jul 22, 2013 4:28 am
Dear Simon.
Actually i have not. Thanks for the tip. i will do that. Is there a way to get LiveCode to map the IP then ones map connect to it?
Best Regards
-
Simon
- VIP Livecode Opensource Backer

- Posts: 3901
- Joined: Sat Mar 24, 2007 2:54 am
Post
by Simon » Mon Jul 22, 2013 5:17 am
Hi Subas,
I don't know if LC can map a drive, I've never tried before.
But if you tell me it's working e.g.
set the defaultFolder to "M:/messages/" & the text of field "firstField" & "/" & the text of field "secondField"
"M:" being the letter you mapped it to.
Then I'd take a look into it.
No promises, but it would be a fun exercise.
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
-
Subas
- Posts: 32
- Joined: Mon May 20, 2013 5:15 am
Post
by Subas » Mon Jul 22, 2013 8:21 am
Dear Simon.
Thank you. I will do that tonight. Thanks again.
Best Regards
Subas
-
Klaus
- Posts: 14177
- Joined: Sat Apr 08, 2006 8:41 am
-
Contact:
Post
by Klaus » Mon Jul 22, 2013 10:03 am
Hi Subas,
setting the defaultfolder requires that that folder is on an already mounted volume!
And this is definitvely a Windows problem, and not a Livecode problem.
Mabe you can use "shell" to map a network volume?
Best
Klaus