Page 1 of 1
					
				Connection using IP numbers does not work
				Posted: Thu Jul 18, 2013 12:44 am
				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
 
			
					
				Re: Connection using IP numbers does not work
				Posted: Thu Jul 18, 2013 11:43 am
				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
 
			
					
				Re: Connection using IP numbers does not work
				Posted: Thu Jul 18, 2013 9:53 pm
				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
			 
			
					
				Re: Connection using IP numbers does not work
				Posted: Fri Jul 19, 2013 10:38 am
				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
			 
			
					
				Re: Connection using IP numbers does not work
				Posted: Sun Jul 21, 2013 11:57 pm
				by Subas
				Dear Simon & Klaus.
Thanks for the comments and advice . I am not sure what to do now.
Best regards 
Subas
			 
			
					
				Re: Connection using IP numbers does not work
				Posted: Mon Jul 22, 2013 1:03 am
				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
			 
			
					
				Re: Connection using IP numbers does not work
				Posted: Mon Jul 22, 2013 4:28 am
				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
			 
			
					
				Re: Connection using IP numbers does not work
				Posted: Mon Jul 22, 2013 5:17 am
				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
			 
			
					
				Re: Connection using IP numbers does not work
				Posted: Mon Jul 22, 2013 8:21 am
				by Subas
				Dear Simon.
Thank you. I will do that tonight. Thanks again.
Best Regards
Subas
			 
			
					
				Re: Connection using IP numbers does not work
				Posted: Mon Jul 22, 2013 10:03 am
				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