Yes. You can use relative paths in Win32 just like most other OS. Just remember that "." represents the current directory and ".." represents the parent directory. Also remember that you can use the "/" slash to separate your directories when using Perl if you want.
For example: open(INFILE,".\\nextdir\\myfile.txt") || die "Couldn't open myfile.txt! $!"; open(LOG,"../log/scriptlog.log") || die "Couldn't open scriptlog.log $!"; open(TWODIRSBELOW,"../../file_that_is_two_dirs_below.txt") || die "Couldn't open file! $!"; open(ONEDIRUP,"./anotherdir/afile.csv") || die "Couldn't open afile.csv! $!"; -----Original Message----- From: Chris Zampese [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 20, 2002 11:23 AM To: [EMAIL PROTECTED] Subject: File question Hi everyone, Is there a way to open a file in a folder/s above/below the one the script is in? (OS is win2k), Thanks, Chris. _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]