Real Software Forums

Help Please: Connecting To LAN
Page 1 of 1

Author:  lenpartico [ Tue Mar 05, 2013 9:57 pm ]
Post subject:  Help Please: Connecting To LAN


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 = "My App Folder" Then //'MAHServer 'OBGYNOK 'Casualty 'Doctor
app.gMyAppFolderOnServer = f
Bool = True
end if

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."
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 -> -> "My App Folder"
I can mount "My App Folder" by typing \\ in Run from the Start Menu



Author:  msssltd [ Thu Mar 07, 2013 10:08 am ]
Post subject:  Re: Help Please: Connecting To LAN

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.

Author:  lenpartico [ Thu Mar 07, 2013 6:38 pm ]
Post subject:  Re: Help Please: Connecting To LAN

Thanks msssltd,
I'll give it a try.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group