• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Xcopy sucks

Participant ,
Feb 26, 2007 Feb 26, 2007

Copy link to clipboard

Copied

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..
TOPICS
Advanced techniques

Views

482

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Feb 26, 2007 Feb 26, 2007

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 26, 2007 Feb 26, 2007

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Feb 26, 2007 Feb 26, 2007

Copy link to clipboard

Copied

How will i check that dude --newsgroup?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Feb 26, 2007 Feb 26, 2007

Copy link to clipboard

Copied

I believe that it is not a slash issue..The CF service runs under this user: CFSVC

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 26, 2007 Feb 26, 2007

Copy link to clipboard

Copied

The CF service runs under this user: CFSVC

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.

This is all windows domain security work.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Feb 26, 2007 Feb 26, 2007

Copy link to clipboard

Copied

LATEST
Thank u..I will have our domain guy take care...thanks a lot.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation