Professional Web Applications Themes

assign new letter to drive in Win32? - PERL Beginners

Hi... I was hoping to use Perl to invoke the MS utility "diskpart" to script some disk management, especially in order to rename drives and partitions. Unfortunately, diskpart is an XP utility-- on Win2K, I can use diskpart to strip the letter from the drive, but attempting to assign a new letter yields an error msg. that "this operation is not supported on your version of Windows". Does anyone know if Perl is capable of stripping/assigning drive letters on Windows 2000? And if so, how? Or where I could read more? -Chris PS Any other pointers to Perl-on-Windows would be ...

  1. #1

    Default assign new letter to drive in Win32?


    Hi...
    I was hoping to use Perl to invoke the MS utility "diskpart" to
    script some disk management, especially in order to rename drives and
    partitions.
    Unfortunately, diskpart is an XP utility-- on Win2K, I can use
    diskpart to strip the letter from the drive, but attempting to assign a new
    letter yields an error msg. that "this operation is not supported on your
    version of Windows".
    Does anyone know if Perl is capable of stripping/assigning drive
    letters on Windows 2000? And if so, how? Or where I could read more?
    -Chris
    PS Any other pointers to Perl-on-Windows would be helpful-- I have
    "Learning Perl on Win32 Systems", but I'm a Windows newbie and further
    information is always helpful...
    Chris McMahon Guest

  2. #2

    Default Re: assign new letter to drive in Win32?

    From: Chris McMahon <CMcMahonLoronix.com>
    > Hi...
    > I was hoping to use Perl to invoke the MS utility "diskpart" to
    > script some disk management, especially in order to rename drives and
    > partitions.
    > Unfortunately, diskpart is an XP utility-- on Win2K, I can use
    > diskpart to strip the letter from the drive, but attempting to assign
    > a new letter yields an error msg. that "this operation is not
    > supported on your version of Windows".
    > Does anyone know if Perl is capable of stripping/assigning drive
    > letters on Windows 2000? And if so, how? Or where I could read more?
    > -Chris
    I think the Unsubst() and SubstDev() in Win32::FileOp should allow
    you to do this.

    Jenda


    ===== [email]JendaKrynicky.cz[/email] === [url]http://Jenda.Krynicky.cz[/url] =====
    When it comes to wine, women and song, wizards are allowed
    to get drunk and croon as much as they like.
    -- Terry Pratchett in Sourcery

    Jenda Krynicky Guest

Similar Threads

  1. how to refer to a cd drive by name rather than drive letter.
    By lar in forum ASP.NET Building Controls
    Replies: 0
    Last Post: March 20th, 08:44 AM
  2. cd-rom detect drive letter.....PLEASE HELP
    By jesterx webforumsuser@macromedia.com in forum Macromedia Director Lingo
    Replies: 3
    Last Post: December 11th, 08:32 AM
  3. please help!! cd rom drive path letter
    By jesterx webforumsuser@macromedia.com in forum Macromedia Director Basics
    Replies: 1
    Last Post: December 11th, 12:37 AM
  4. Get UNC From drive letter
    By Croney in forum ASP
    Replies: 0
    Last Post: August 18th, 05:51 PM
  5. Drive letter of Boot Disk
    By LAU in forum Windows XP/2000/ME
    Replies: 2
    Last Post: July 4th, 01:44 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139