| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| I have a text file on a W2K file server on my network that I need to retrieve by a ColdFusion Server on the same network how might I accomplish this? I have tried this. <cffile action="read" file="Z:\my_data.txt" variable="myData" /> An error occurred when performing a file operation read on file Z:\my_data.txt. The cause of this exception was: java.io.FileNotFoundException: Z:\my_data.txt (The system cannot find the path specified). I have tried this. <cfscript> oFile = FileOpen("Z:\my_data.txt", "read"); </cfscript> I have Tried the server name and IP like this. <cfscript> oFile = FileOpen("D:\192.168.1.10\Public\Installs\my_data. txt", "read"); </cfscript> |
|
#2
| |||
| |||
| My guess is that you do not have the 'Z' drive mapped on the CF server. On your second example, the UNC name isn't formatted quite right. Instead of the 'D:\' in front of the IP address, try '\\' instead. So assuming you have a share on that server named 'Public', try using: "\\192.168.1.10\Public\Installs\my_data.txt" |
|
#3
| |||
| |||
| Thanks, I tried that but it says that the file cannot be found. I also tried oFile = FileOpen("\\designsbg\Public\Installs\my_data.txt" , "read"); AND oFile = FileOpen("\\designsbg\Installs\my_data.txt", "read"); And with the IP Address The folder that is shared is Installs. |
|
#4
| |||
| |||
| When I map a drive inside my network ii is always \\designsbg\installs to reach that folder. |
|
#5
| |||
| |||
| I got it to work thanks. |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.