Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Tue Jun 27, 2017 2:03 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Help Please: Connecting To LAN
PostPosted: Tue Mar 05, 2013 9:57 pm 
Offline

Joined: Fri Sep 30, 2005 10:49 pm
Posts: 504
Hello,

I have a Mac and a PC connected to a Windows Local Server..

On the Mac I can put this code in a Pushbutton

Dim Bool as Boolean
Dim i,n as Integer
n = VolumeCount

if UBound(ListOfVolumes) = n-1 then Return 'No change

if UBound(ListOfVolumes) < n-1 then 'Volume mounted
For i = 0 to n-1
Dim f as FolderItem
f = Volume(i)

If f.name = "My App Folder" Then //'MAHServer 'OBGYNOK 'Casualty 'Doctor
app.gMyAppFolderOnServer = f
Bool = True
Exit
end if
Next

end if

If not Bool then
msgbox """My App Folder"" could not be found." + Chr(13) + Chr(13) +_
"Please ensure that this computer is logged on to the server and try again."
Quit
end if

and if "My App Folder" is available I could now access files from that folder save files to it.

That does not work on the PC. How can I do likewise from my PC?

On the PC "My App Folder" is located at Network -> 192.168.1.103 -> "My App Folder"
I can mount "My App Folder" by typing \\192.168.1.103 in Run from the Start Menu


Thanks.

Lennox


Top
 Profile  
Reply with quote  
 Post subject: Re: Help Please: Connecting To LAN
PostPosted: Thu Mar 07, 2013 10:08 am 
Offline
User avatar

Joined: Fri Oct 28, 2005 7:05 am
Posts: 565
Location: Emsworth, UK
lenpartico wrote:
That does not work on the PC. How can I do likewise from my PC?


The Mac / Linux network redirector works very differently to the one in Windows.

Windows does not really 'mount' a network file system as Linux/OSX does. Windows connects (maps) a drive designator (letter) to a share point.

The options I have used in the past.
1. Establish the drive mapping before starting the RS application. Either manually in Explorer, or using a login script, or using an application startup script
2. Use the Windows Functionality Suite to connect natively to the share point within RS at runtime.
3. Use the RS Shell object to connect via the shell at runtime.

The shell command to connect the next available drive designator to the share point \\MyServer\MyApps would look like this.
net use * \\myserver\myapp /user:username password

I have no idea whether it still works with Vista and Win7 UAC.
You can test it by typing cmd in the run box and entering the line shown above, adjusting for your own environment as needed.

_________________
Yes it's me in the avatar


Top
 Profile  
Reply with quote  
 Post subject: Re: Help Please: Connecting To LAN
PostPosted: Thu Mar 07, 2013 6:38 pm 
Offline

Joined: Fri Sep 30, 2005 10:49 pm
Posts: 504
Thanks msssltd,
I'll give it a try.
Lennox


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group