Hi ..
My code doesnt what it suppose to do..it needs copy files and
folder into destination but apparently it doenst..what is wrong ?
It is working when I use dos command but not with Cf..I
already map it...Thank u genius..
Are you missing a backslash on <cfset
sr="D:\cfusionmx\wwwroot\#name#"> ? Your other CFSETs have them.
Should it be <cfset sr="D:\cfusionmx\wwwroot\#name#
\"> ? Other than that, you might put your xcopy into a
.bat file and execute that.
Does the user that the ColdFusion Service runs under
('LocalSystem' by
default) have all the required read/write/execute permissions
to all the
necessary resources.
When you run it from the command line, your permissions are
used, when
CF runs it, CF needs corresponding permissions.
Then you just need to make sure that user is a domain user
with the
necessary permissions to execute xcopy as well as read and
write to the
necessary permissions.