On Fri, 28 Apr 2000 15:56:16 -0700, Carl Campbell <[EMAIL PROTECTED]>
wrote:
>Use the environment's variables, which Perl translates with no problem.
>
> perl -e "print $ENV{SYSTEMROOT}"
>
> perl -e "print $ENV{SYSTEMDRIVE}"
No, this doesn't give you the current directory! It gives you the system
drive and directory (big surprise here).
Use the Cwd.pm module to get the "current working directory":
perl -MCwd -e"print cwd"
-Jan
>-----Original Message-----
>From: Danna Li [mailto:[EMAIL PROTECTED]]
>Sent: Friday, April 28, 2000 2:42 PM
>To: Perl-Win32-Users Mailing List
>Subject: How to get the active drive letter?
>
>
>Hi,
>
>I am new to perl and would like to know whether there is any library
>function (or any alternative) that can be called to find out the active
>drive letter and/or the current directory on NT.
>
>I'll be appreciated if you can help.
>
>Thanks,
>Danna
---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
[EMAIL PROTECTED]
For non-automated Mailing List support, send email to
[EMAIL PROTECTED]