Baphi has asked for the wisdom of the Perl Monks concerning the following question:
Hi everyone, and happy newyear. I just wrote my own installation program for my program which gets installed from a CD to the C: drive, everything works great on my computer but since I must specify the drive from which to move the files, I need to figure out what the letter of the CD drive of the computer that the installation comes in contact with so I can set it to a variable, my questions to you are :
1: how can I find the CD drive letter in perl
2: how can I use system(), and from that put the result in a variable. for example system(dir); is it posible to set the result into your perl script?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: find CD drive letter
by ikegami (Patriarch) on Jan 03, 2010 at 04:37 UTC | |
|
Re: find CD drive letter
by Jenda (Abbot) on Jan 03, 2010 at 11:23 UTC | |
|
Re: find CD drive letter
by ww (Archbishop) on Jan 03, 2010 at 04:05 UTC | |
by jwkrahn (Abbot) on Jan 03, 2010 at 04:15 UTC | |
by ww (Archbishop) on Jan 03, 2010 at 17:46 UTC | |
by BrowserUk (Patriarch) on Jan 03, 2010 at 18:44 UTC |