473,395 Members | 2,192 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

mounting network drives in macosx

Joe
Is there a way to mount a network share from within Python on MacOSX?
I imagine it would be the same as for Unix, but I don't know how to do
it for Unix either. I have searched python.org and googled a lot
without success. Any help here is greatly appreciated. Thanks all!
Jul 18 '05 #1
2 1920
It depends if you want to mount via NFS, SAMBA (windoze like), or other.
Once you figure that out, google for python os commands,
that may get you started.
there may be seperate modules for macosx.

"Joe" <he*******@hotmail.com> wrote in message
news:56**************************@posting.google.c om...
Is there a way to mount a network share from within Python on MacOSX?
I imagine it would be the same as for Unix, but I don't know how to do
it for Unix either. I have searched python.org and googled a lot
without success. Any help here is greatly appreciated. Thanks all!

Jul 18 '05 #2
If it's the same network share every time, you can just make an alias
to it (manually) from the finder, and then os.system('open myalias')
whenever you want it to be mounted. Of course, this will open a window
in the finder, but it is a quick&dirty way to do it.

The real question is why you're trying to do it, and in what kind of situation.

On 2004-03-03 12:26:21 -0500, "bobb" <ra*****@hotmail.com> said:
It depends if you want to mount via NFS, SAMBA (windoze like), or other.
Once you figure that out, google for python os commands,
that may get you started.
there may be seperate modules for macosx.

"Joe" <he*******@hotmail.com> wrote in message
news:56**************************@posting.google.c om...
Is there a way to mount a network share from within Python on MacOSX?
I imagine it would be the same as for Unix, but I don't know how to do
it for Unix either. I have searched python.org and googled a lot
without success. Any help here is greatly appreciated. Thanks all!

Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: BuddyWork | last post by:
Hello, I need to know how I can check if the drives on my machine are network drives and local drives via the .Net framework. For example my PC has the following drives C: Local D: Local N:...
6
by: Default User | last post by:
Hi How can i look for network share folders and copy a text file to it? I've been looking into how i can do this in the documention but with no luck. I found a little on of the web but i dont...
2
by: Pradeep Sundaram(MSFT) | last post by:
Hello, I want to enumerate all the Drives on the web server using ASP.NET (C#) Writing code like this works when i use local host but when i try to access it from another machine it does not show...
11
by: Andre | last post by:
Hi, I have ASP.NET application running on standalone (not part of the domain) Windows 2003. I use forms authentication for my application. The problem I have is that I need to create and read...
1
by: Sparky | last post by:
Hi I was wondering if someone can please enlighten me as to the best and most approved way to connect and disconnect network drives in vb.net. I have been using Mpr.dll API calls such as...
1
by: Dennis | last post by:
I use the below code to get the Network Places items. However, this requires "Late Binding". I read that you can avoid late binding by adding a reference to the Com Types in your application. ...
0
by: Dennis | last post by:
I have tried to use the IWshRuntimeLibrary and ManagementObjectSearcher("SELECT * FROM Win32_LogicalDisk") to get all Logical Drives, Mapped Network Drives, Shared Folders and Shared Drives with...
2
by: =?Utf-8?B?ZGdjb29wZXI=?= | last post by:
When I get a list of drives using the Directory.GetLogicalDrives(), it gives me all drives including disconnected network drives. When I attempt to use Directory.GetDirectories() on a disconnected...
4
by: Luc The Perverse | last post by:
Hi - I have very little C# programming experience. I am making a software product which calls for an interface almost identical to Windows Explorer - and I wondered if mounting a "virtual drive"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.