If you do not use a trailing backslash when setting the Path property of the SAFile object, all files created will concatenate the last portion of the filename and place the file in the intended folder's parent folder.
To recreate the problem, do the following:
1. Create a file called PathTest.asp. Enter the following code:
<%
Set objFile = Server.CreateObject("SoftArtisans.SAFile")
objFile.Path = "C:\Temp"
objFile.Create "oraMutantur.txt"
%>
2. Run PathTest.asp.
3. Note that you now have a file in your root directory called TemporaMutantur.txt.
|