in reply to Search function not working from CD Rom
If you run a program on your hard disk (say C:) to access a CD rom (say E:) I fail to see how you can use a relative path as you need to specify the E: - there simply is no relative path from C: to E: This being the case I suggest your exe perhaps has a hard coded CD rom drive letter in it (given it works from the HDD). You almost certainly have a path issue.
A script can work out where it is (ie if on the CD rom what the drive letter is) by using Cwd. This should help fix your problem.
cheersuse Cwd; my $cwd = cwd(); my ($cdrom_drive_letter) = $cwd =~ m/^(\w:)/;
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Search function not working from CD Rom
by Gerard (Pilgrim) on Jan 06, 2003 at 00:36 UTC | |
by pfaut (Priest) on Jan 06, 2003 at 00:41 UTC | |
by Gerard (Pilgrim) on Jan 06, 2003 at 00:45 UTC | |
by tachyon (Chancellor) on Jan 06, 2003 at 01:59 UTC | |
by Gerard (Pilgrim) on Jan 06, 2003 at 00:47 UTC |