Xcopy, insufficient space

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
walter4991
Posts: 21
Joined: 11 Dec 2010 10:17

Xcopy, insufficient space

#1 Post by walter4991 » 02 May 2011 15:09

Hello everyone, I made ​​a script that I make a backup of my pen drive but when I start up after a while gives me the error: "insufficient space"... I read that this depends on the Length of paths and file names ... How can I do?

Here's the code:

Code: Select all

xcopy *.* "%userprofile%\Desktop\Backup Pen Drive" /e /i /y /h /r

I also tried adding the "/ n ", but nothing has changed ...

Thanks, Walter.

walter4991
Posts: 21
Joined: 11 Dec 2010 10:17

Re: Xcopy, insufficient space

#2 Post by walter4991 » 04 May 2011 14:03

up... :roll:

aGerman
Expert
Posts: 4678
Joined: 22 Jan 2010 18:01
Location: Germany

Re: Xcopy, insufficient space

#3 Post by aGerman » 04 May 2011 16:44

No idea. Doesn't sound like too long names but like too much data. Maybe it could help to append the /j option.

Regards
aGerman

walter4991
Posts: 21
Joined: 11 Dec 2010 10:17

Re: Xcopy, insufficient space

#4 Post by walter4991 » 06 May 2011 10:59

What is /j ? in the help of the xcopy command is not present...

aGerman
Expert
Posts: 4678
Joined: 22 Jan 2010 18:01
Location: Germany

Re: Xcopy, insufficient space

#5 Post by aGerman » 06 May 2011 11:53

Oh, I didn't realized that. It's in my help on Windows 7 but I cannot remember that I found it on XP :(
On the Micrsoft web sites I found the following:

Code: Select all

/j    Copies files without buffering. Recommended for very large files. This parameter was added introduced in Windows Server® 2008 R2.

So, sorry but I have no further idea.

Regards
aGerman

alan_b
Expert
Posts: 357
Joined: 04 Oct 2008 09:49

Re: Xcopy, insufficient space

#6 Post by alan_b » 11 May 2011 09:49

walter4991 wrote:What is /j ? in the help of the xcopy command is not present...


You did not need to ask that.
CMD.EXE gives you the answer when you enter
XCOPY /?

Do you have CMD.EXE, or are you using Windows 98 or earlier, perhaps even DOS 3.2 ?

Post Reply