Solved

xcopy help

Posted on 2011-03-17
9
474 Views
Last Modified: 2012-05-11
Hi,

I have an XCOPY command:

xcopy "E:\apps\Hyperion\common\import_export\planadmin@Native Directory\Planning_TS_EMBUD_All\*.*" "\\lynx\HyperionDev_Backups\Essbase_Backup\DEV_BKUPS\DEV_Weekly\03172011_Thu\LCM_BKUPS\Planning_TS_EMBUD_All\*.*" /Y /S /E /i >> LCM_Backup.log

It runs and starts copying then it just quits and stops and is not copying all the subfolders and folders.  Am i doing something wrong?  Is there a better command to copy an entire directory?
0
Comment
Question by:elwayisgod
  • 4
  • 3
  • 2
9 Comments
 
LVL 13

Expert Comment

by:AustinComputerLabs
ID: 35159894
I use the /s/h/e/r/c/k/y switches with XCOPY to copy everything and continue on errors.
0
 

Author Comment

by:elwayisgod
ID: 35159992
Nope.. Still stops... It's only happening from a certain server too.  What on gods earth could possibly be happening on a specific server all of a sudden.  This XCOPY was working flawlessly uptil a few days ago....
0
 
LVL 11

Expert Comment

by:yelbaglf
ID: 35160020
Here's the technet article that shows you all the syntax options.
http://technet.microsoft.com/en-us/library/bb491035.aspx

If you're not opposed to using robocopy, have a look at my solution here.
http://www.experts-exchange.com/Networking/Misc/Q_26865402.html?sfQueryTermInfo=1+10+30+robocopi+yelbaglf#a35040865
0
 

Author Comment

by:elwayisgod
ID: 35160034
Client will not allow Robocopy to be installed :(
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 13

Expert Comment

by:AustinComputerLabs
ID: 35160114
Can you try a mapped drive instead of UNC for the destination?
0
 
LVL 11

Accepted Solution

by:
yelbaglf earned 250 total points
ID: 35160341
Technically it doesn't have to be installed.  It's just an .exe in the Win Svr support tools.
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en

But, if xcopy is the preferred method, then try something like this.
xcopy [SOURCE] [DEST] /E /C /I /F /H /R /K /X /Y >> \\Dest\log.txt
0
 
LVL 11

Expert Comment

by:yelbaglf
ID: 35160351
Another note is that you might consider shortening and simplifying your folder/directory naming structure beforehand.  This might be causing an issue as well.
0
 

Author Comment

by:elwayisgod
ID: 35161257
It's a folder length issue... When I actually watch the cmd window an error pops up about 'out of memory'.  It's not a actual RAM issue or anything.  Further investigation shows it's limited to 255 total characters.  Thus my source and destination combined sometimes was over that.  So I shortened it for now as best I could and it's working but it's hard as the software determines the path where these xml files are stored.....
0
 
LVL 11

Expert Comment

by:yelbaglf
ID: 35161377
I know how you feel.  I've dealt with this in the past, and it's no fun!  I'm glad to hear we have some functionality finally.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

When it comes to writing scripts for a Client/Server computing environment it is essential to consider some way of enabling the authentication functionality within a script. This sort of consideration mainly comes into the picture when we are dealin…
VALIDATING DATES One method of validating dates is to jam the date into the DATE command and see if it accepts it by examining the system's errorlevel value. A non-zero result indicates failure. A typical example might look something like the fol…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now