How to Mount/Unmount Drives on Windows?

Discussion in 'Python' started by dpickles@pacbell.net, Feb 26, 2006.

  1. Guest

    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, 2006
    #1
    1. Advertising

  2. Guest

    , Feb 26, 2006
    #2
    1. Advertising

  3. On 25 Feb 2006 18:06:15 -0800, rumours say that 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
    Christos Georgiou, Mar 4, 2006
    #3
  4. Guest

    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, 2006
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?UHJhZGVlcCBTdW5kYXJhbShNU0ZUKQ==?=

    Enumerate all the drives including Mapped network drives on a serv

    =?Utf-8?B?UHJhZGVlcCBTdW5kYXJhbShNU0ZUKQ==?=, Feb 25, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    1,027
    =?Utf-8?B?UHJhZGVlcCBTdW5kYXJhbShNU0ZUKQ==?=
    Feb 26, 2005
  2. Leonard Slatkin
    Replies:
    1
    Views:
    4,437
    Ray Tayek
    Nov 30, 2003
  3. milkyway
    Replies:
    2
    Views:
    409
    Ryan Stewart
    Dec 19, 2004
  4. Spendius
    Replies:
    2
    Views:
    1,251
  5. tguclu

    about mount func.

    tguclu, May 13, 2007, in forum: C Programming
    Replies:
    2
    Views:
    266
    tguclu
    May 13, 2007
Loading...

Share This Page