>From the documentation, this will definitely give what I want, if it works with a 
>remote drive letter. 

Jenda, I'm not sure whether the following would work:

use Win32::FileOp;
print Substed( "\\\\server\\C\$" );

Linchi 

> -----Original Message-----
> From: Jenda Krynicky [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 24, 2001 1:32 PM
> To: '[EMAIL PROTECTED]'
> Subject: Re: Relating drive letters to NT disk numbers
> 
> 
> > I'm looking for a way to identify the disk number of a 
> given drive on
> > NT. For instance, there are two disks, disk 0, and disk 1, on a NT
> > box. Disk 0 has three partitions, and are currently assigned drive
> > letters, D, E, and F, respectively. Disk 1 has one partition, and is
> > assigned drive letter G.
> > 
> > I cab get this relationship from disk administrator. But have so far
> > not found a way to script it.
> > 
> > Linchi
> 
> See if what you get from
> 
>       use Win32::FileOp;
>       print Substed( 'C:' );
> 
> is enough.
> 
> Jenda
> 
> == [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ==
> : What do people think?
> What, do people think?  :-)
>              -- Larry Wall in <[EMAIL PROTECTED]>
> _______________________________________________
> Perl-Win32-Admin mailing list
> [EMAIL PROTECTED]
> http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin
> 

_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin

Reply via email to