-
1
- #1
I too have searched for a solution to creating longfilenames in Clipper. I have found none that work well with long directory paths, long filenames, spaces, fcreate() etc.
Well here is a quick and easy solution that works for me. I use this method for creating html files
temp_file := 'tempfile.htm'
long_file := 'c:\websitefiles\links\lotsoflinks.html'
/*code to create html files here. consists of fcreate(m_temp_file) ....
Basically, your code works on the temp_file and at the end of your code you then do this:
!copy &temp_file &long_file
You just shell out and issue a "copy temp_file long_file" command
I've been searching for years to a solution for this and it's amazing how simple the answer was.
Well here is a quick and easy solution that works for me. I use this method for creating html files
temp_file := 'tempfile.htm'
long_file := 'c:\websitefiles\links\lotsoflinks.html'
/*code to create html files here. consists of fcreate(m_temp_file) ....
Basically, your code works on the temp_file and at the end of your code you then do this:
!copy &temp_file &long_file
You just shell out and issue a "copy temp_file long_file" command
I've been searching for years to a solution for this and it's amazing how simple the answer was.