Connection using IP numbers does not work

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
Subas
Posts: 32
Joined: Mon May 20, 2013 5:15 am

Connection using IP numbers does not work

Post by Subas »

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

Re: Connection using IP numbers does not work

Post by Klaus »

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
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Connection using IP numbers does not work

Post by Simon »

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

Re: Connection using IP numbers does not work

Post by Klaus »

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

Re: Connection using IP numbers does not work

Post by Subas »

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
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Connection using IP numbers does not work

Post by Simon »

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

Re: Connection using IP numbers does not work

Post by Subas »

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
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Connection using IP numbers does not work

Post by Simon »

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

Re: Connection using IP numbers does not work

Post by Subas »

Dear Simon.

Thank you. I will do that tonight. Thanks again.

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

Re: Connection using IP numbers does not work

Post by Klaus »

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
Post Reply