Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Long filenames - the quick & easy way 1

Status
Not open for further replies.

SM777

Technical User
Mar 7, 2001
208
GB
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top