Try this: open file "../B1/theText.txt" The first element of the relative path (the part that appears to the left of the first "/") must be one of these (if there are other possibilities I don't know what they are): - the name a file in the current directory (in which case there's no slash after it) - the name of a subdirectory in the current directory - "." (meaning "this directory") - ".." (meaning "this directory's parent directory") Regards, Phil [EMAIL PROTECTED] wrote: > > If I have a folder (A1) containing two folders (B1 & B2) and my MC program in > folder B1 wants to look for a file in folder B2, can a *relative* path be > written to go from folder B1 to B2? > > For example, if my MC program "myProgram.exe" is in file B1 and I want to > read a text file "theText.txt" in folder B2, is there a way to go *up* one > level and then back to the appropriate folder in the path? Something like: > > open file "A1/B2/theText.txt" (which I tried but doesn't work) > > Thanks. > > Philip Chumbley > > Archives: http://www.mail-archive.com/metacard%40lists.best.com/ > Info: http://www.xworlds.com/metacard/mailinglist.htm > Please send bug reports to <[EMAIL PROTECTED]>, not this list.
begin:vcard n:Davis;Phil tel;home:(503) 557-5656 tel;work:(503) 986-1215 x-mozilla-html:FALSE adr:;;;;;; version:2.1 email;internet:[EMAIL PROTECTED] fn:Phil Davis end:vcard