This is very easy to do with a VBS script. Maybe you can write the
script and have your RB application launch it.
If the mapping is always the same, this shouldn't be a problem.
I don't know how, or if it's possible, to pass information to a VBS
script, so I can't help you there.
Create a text file, name it as you like, including the .vbs extension
and place this code into it:
Set objNetwork = CreateObject("WScript.Network")
objNetwork.MapNetworkDrive "Driveletter:",
"\\servernameorIPaddress\sharename"
-----Original Message-----
From: gettingstarted-bounces at lists dot realsoftware dot com
[mailto:gettingstarted-bounces at lists dot realsoftware dot com] On Behalf Of
Michael Pike
Sent: Monday, December 27, 2004 5:20 PM
To: gettingstarted at lists dot realsoftware dot com
Subject: mapping a network drive
I have searched high and low on google for a way to do this, and have
been unsuccessful. Hopefully someone on here has a snippit of code or
something.
I simply want to map a network drive on a Windows based system.
Right now, I am "working around it" in a cheap manner by doing ShowURL
"\\servername\resource" - which allows the windows box to connect to
the resource... however, I would like to map it as a drive, and cannot
figure out how for the life of me.
Preferably default to X: - any ideas? If I can't figure this out I
have to do it in VB, then I have to support two versions (I already
have an application that maps a windows source in Mac OS X, would like
to use the same application for Windows).
thanks!
Mike
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>
|