I have an Excel file that is generated from an Access 2000 database using Cold Fusion MX on a Windows 2000 server and it works great. I am now trying to copy this Excel file into another folder once a week where I will use the CFScheduler.
Both my copy attempts are not working and just show Cold Fusion code. The one where I tried ExcelCopy.xls shows an Excel spreadsheet with Cold Fusion variables and doesnt work.
If I try this it shows Cold Fusion variables.
This didnt work either:
Please advise.
Both my copy attempts are not working and just show Cold Fusion code. The one where I tried ExcelCopy.xls shows an Excel spreadsheet with Cold Fusion variables and doesnt work.
If I try this it shows Cold Fusion variables.
Code:
<cflock name="myLock" type="EXCLUSIVE" timeout="30">
<cffile action="COPY" source="C:\myserverDirectorypath\Excel.cfm" destination="C:\inforserverDirectoryPath\ExcelCopy.xls">
</cflock>
This didnt work either:
Code:
<cflock name="myLock" type="EXCLUSIVE" timeout="30">
<cffile action="COPY" source="C:\myserverDirectorypath\Excel.cfm" destination="C:\inforserverDirectoryPath\ExcelCopy.cfm">
</cflock>
Please advise.