OH NOOOO!!! What have you done?!?! You've ruined my (almost) perfect code!! <crying sounds>
Just kidding, I had purposely given you the answer; however, I placed it in the wrong spot hoping that you would catch it and jog your memory. I guess it [the answer] was a speeding bullet. Anyway, I wrote this little bit of code to show you. If you want to test it out then....
1) Save the following code to a PRG file.
NOTE: Don't forget to change the database name
that is shown in red to a file that exists...or make
a small DBF that will fit on the floppy. I created
one with just 3 fields and only 2 records for testing
this code.
2) Insert a blank disk in drive [red]A:[/red] and create a
directory on it and name it [red]TEMP[/red].
3) On your [red]C:[/red] drive, create a directory in the
root of the drive and call that directory [red]TEMP[/red] as well.
4) Start DB and run this program and answer the questions.
5) If you still can't figuer out what you are doing
wrong or you are having problems with these
directions, post again.
**** Start of Code ****
SET TALK OFF
SET ECHO OFF
MyDrive = " "
MyPath = "\temp\"
MyFile = " "
AllMe = "x"
CLEAR
@ 1,3 SAY "Enter Drive Letter (A or C) :" GET MyDrive
@ 3,3 say "Enter an 8 char filename :" GET MyFile
READ
Allme = MyDrive + ":" + MyPath + MyFile + ".dbf"
COPY FILE [red]TestMe.dbf[/red] TO &AllMe
QUIT
**** End of Code ****
Hope this helps some. Let me know one way or the other, in the meantime, good luck.
--MiggyD It's better to have two heads to solve a problem from different angles than to have tunnel vision to a dead end.