473,320 Members | 1,953 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,320 software developers and data experts.

How to Mount/Unmount Drives on Windows?

Hello,

I am creating a simple application that will reside in the Windows
system tray. The purpose of the program is to mount or unmount external
hard drives or flash memory devices, and to set their default states
(ie mounted or unmounted) at startup.

I do not know how to mount or unmount drives on Windows. I think that
it could possibly be done with a DOS command (using os.system()).

Thank you for any information you may have.

Feb 26 '06 #1
3 5861
This looks like it might help you ...

http://support.microsoft.com/?kbid=311272

.... although the blurb does say "DevCon is not redistributable. It is
provided for use as a debugging and development tool".

There is an article about it at ...

http://tinyurl.com/4kb8m

regards

richard.

Feb 26 '06 #2
On 25 Feb 2006 18:06:15 -0800, rumours say that dp******@pacbell.net might
have written:
Hello,
<snip>
I do not know how to mount or unmount drives on Windows. I think that
it could possibly be done with a DOS command (using os.system()).


mountvol is the command you want. I know it's in winxp, I think it was in
win2k too.

Check the Windows Help for its usage.

PS another command that is most useful is netsh, especially for laptops.
--
TZOTZIOY, I speak England very best.
"Dear Paul,
please stop spamming us."
The Corinthians
Mar 4 '06 #3
thank you!
devcon was a little more than I needed, and I couldn't get it to work
for how I wanted to use it. I will try mountvol. If it has an argument
to unmount a volume as well, then it will fit the bill perfectly.

Mar 17 '06 #4

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

Similar topics

2
by: ImOk | last post by:
WHen I run this under Windows I get the Count of drives but then I get an error message on the Reset() when I try to enumerate. Does this work for anyone? $fs = new...
3
by: Terry Olsen | last post by:
My 5 year old has lots of games that require the CD be in the drive. I would like to come up with a program that will mount the .iso image to a virtual cd-rom drive and then run the game...
0
by: rmckbrown | last post by:
Using .Net FW 1.1 and VB.net I am calling system.io.directory.getlogicaldrives from a windows service; however, only the local drives are returned, and not my mapped drives. When I execute the...
9
by: =?Utf-8?B?THVpcyBBbnRvbmlvIFJvc2VsbG8gR2FyY2lh?= | last post by:
Hi, I have a big problem with a Visual C++ 6.0 function that retrives the logical drives and types in the local system. This function works perfectly on Windows 98, NT, 2000, XP and 2003, but I...
3
by: m.smith_1999 | last post by:
Hello, I'm a student software developer. As a part of an excerise I'm doing I'm trying to build a program to create "mount files" and mount them. Something like Sarah Dean's OTFE but really...
2
by: Michael_R_Banks | last post by:
Is there any way to mount a Unix volume with VB.net and use the file system as if it were native to Windows? I need to write a program that will take a file, manipulate it some, then re-post it &...
1
Nepomuk
by: Nepomuk | last post by:
In most modern distributions of Linux and Unix (at least ones with graphical environments like KDE, Gnome or XFCE), you get to mount your partitions easily from the desktop. In some cases however, it...
0
by: Daffydd | last post by:
Hi all, This one's driving me up a wall! We have a small office network, Windows SBS 2003, nothing fancy - recently upgraded from an old Compaq running Novell. Back in the day we used the "F"...
12
by: tvnaidu | last post by:
Trying to mount windows folder on Linux machine, getting this error. I have a folder called "CheckIn" on windows, I made that folder as Network sharing. ON lInux, I tried to access that folder by...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.