> I am attempting to use the java.io.File with cfobject and:
>
> <cfobject type="JAVA" name="jFile" class="java.io.File"
> action="CREATE">
> <cfscript>
> newDir = jFile.init('\\\\servername.domain\\dirthis\\dirthat');
> newDir.mkdir();
> </cfscript>
>
> Here is what happens
> 1) the code appears to execute without issue
> 2) no directory is created
> 3) no error of any kind is returned
>
> we have a win2k box and I am creating this dir on another
> win2k machine using the UNC path.
>
> Any ideas?
Are you able to successfully do the same thing using CFDIRECTORY? Are you
running CF as a user with rights to network resources?
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics.
http://www.fusionauthority.com/signup.cfm