Uh just another quick question (in relation to the above)
Is there a command to get the letter of the current drive? I've done it using getcwd and then matching the result against /.:/, but it seems like something for which there'd be a standard command. Thanks. | [reply] |
The concept of "drive" is uncommon, so there's no standard command. There could be function in one of the Win32 modules, but I haven't found one. I can't even find a Win32 system call that gets the current drive (just one that returns the current directory, with drive).
sub getcwdrv {
return getcwd() =~ /^([a-zA-Z]:)/ && uc($1);
}
| [reply] [d/l] |