virtual drive
am 15.06.2011 08:49:43 von Irfan Sayed
--0-488183294-1308120583=:23445
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Hi,
is there any way or module in perl to create the virtual drive in =
windows=0Alets say , i have to create M: mapped to c:\test
so i can u=
se command subst M: c:\test
=0Abut still , is there any better way=A0=
regards=0Airfan=0A
--0-488183294-1308120583=:23445--
Re: virtual drive
am 15.06.2011 09:09:19 von Rob Coops
--0016364ecc34f98da904a5bad5aa
Content-Type: text/plain; charset=UTF-8
On Wed, Jun 15, 2011 at 8:49 AM, Irfan Sayed wrote:
> Hi,
>
> is there any way or module in perl to create the virtual drive in windows
> lets say , i have to create M: mapped to c:\test
>
> so i can use command subst M: c:\test
>
>
> but still , is there any better way
>
> regards
> irfan
>
Hi Ifran,
There should be a better way I am certain there is an API in Windows that
allows you to do this programatically. What you would then need to do is
call the API directly and avoid the command line mess. I am not sure if this
API is documented (I believe so as I vaguely remember reading it several
years ago), if it is you will find that it usually comes down to making a
simple call to the API, though this will be via a external library so it
will require some work and of course this is not something that will be very
portable or for that mater simple to write. So please do look at CPAN to see
if there maybe is already a module for this (I could not find one having
just had a quick look)
If there is no module for this yet please do share your implementation of
this API (if you decide to go the proper way) with the rest of us as it
would be very interesting to see how this is done.
Regards,
Rob
--0016364ecc34f98da904a5bad5aa--
Re: virtual drive
am 15.06.2011 13:13:30 von Shawn H Corey
On 11-06-15 03:09 AM, Rob Coops wrote:
> If there is no module for this yet please do share your implementation of
> this API (if you decide to go the proper way) with the rest of us as it
> would be very interesting to see how this is done.
If the API already exists, it'll be in one of the Win32 modules on CPAN:
http://search.cpan.org/search?mode=all&query=win32
However, I wouldn't know which one. :)
--
Just my 0.00000002 million dollars worth,
Shawn
Confusion is the first step of understanding.
Programming is as much about organization and communication
as it is about coding.
The secret to great software: Fail early & often.
Eliminate software piracy: use only FLOSS.
--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/
RE: virtual drive
am 15.06.2011 14:12:26 von Ken Slater
Take a look at Win32::FileOp on CPAN
(http://search.cpan.org/~jenda/Win32-FileOp-0.14.1/FileOp.pm ).
HTH, Ken
> -----Original Message-----
> From: Irfan Sayed [mailto:irfan_sayed2002@yahoo.com]
> Sent: Wednesday, June 15, 2011 2:50 AM
> To: Perl Beginners
> Subject: virtual drive
>
> Hi,
>
> is there any way or module in perl to create the virtual drive in
> windows
> lets say , i have to create M: mapped to c:\test
>
> so i can use command subst M: c:\test
>
>
> but still , is there any better way
>
> regards
> irfan
--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/
Re: virtual drive
am 15.06.2011 18:03:40 von Leo Susanto
Try Win32::Lanman
http://www.cpan.org/modules/by-authors/id/J/JH/JHELBERG/
On Tue, Jun 14, 2011 at 11:49 PM, Irfan Sayed wrote:
> Hi,
>
> is there any way or module in perl to create the virtual drive in windows
> lets say , i have to create M: mapped to c:\test
>
> so i can use command subst M: c:\test
>
>
> but still , is there any better way
>
> regards
> irfan
>
--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/