filepath variable not working
Hi I have a page builder form and when the user is finished building her page, she can click "Write File" and the file will actually be saved to a particular folder as an html file. All this worked fine until I wanted to try and save these new files to a network shared folder so that our employer could copy the files over to his pc and review them before uploading to the remote server.
Here is the new file path variable and the path I assigned to it.
<!--- Set Path and File Name --->
<cfset fileExtension = ".html">
<cfset pathToFile = "C:\webdes-pc\newPageFiles">
<cfset fileToWrite = pathToFile & SESSION.fileName & fileExtension>
Here is the original code that worked perfectly.
<!--- Set Path and File Name --->
<cfset fileExtension = ".html">
<cfset pathToFile = "C:\ColdFusion8\wwwroot\replacememntlightbulbs\pageBuilder\">
<cfset fileToWrite = pathToFile & SESSION.fileName & fileExtension>
Is there a reason why I could not write a file to a networked folder? I would have thought there wouldnt have ben a problem with that idea. Thanks for any help in advance!
