View Full Version : File within a File
nat_wheatley
01-20-2009, 09:23 AM
I'd like to use the FP command to open a file, within another file. Where do I store the second file so that the FP command is able to locate it?
gerald_martin
01-20-2009, 10:11 AM
Nat: Must be in the same folder/directory as the master file.
nat_wheatley
01-20-2009, 10:37 AM
Got it. Thanks Gerald.
harold_weber
01-20-2009, 10:49 AM
I've used the following with success:
FP, ../../myfile.sbp
OR
FP, C:\SBPARTS\myfile.sbp
In the first case, the file called myfile is two sub-directories above the location of the calling file, hence the use of two ../
In the second case, you give the path to myfile from the C drive.
Regards,
Harold
nat_wheatley
01-20-2009, 09:26 PM
Great info, thanks Harold!
bcammack
01-21-2009, 08:15 AM
I always think of it this way:
"\" means "the root directory of whatever logical disk I am executing on"
".\" means "the directory where I am current executing"
"..\" (as you described) means "one directory up from wherever I am currently executing"
Powered by vBulletin® Version 4.2.2 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.