Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi, i have a big problem. I have

Status
Not open for further replies.

Gianricus

Programmer
Apr 2, 2003
62
IT
Hi, i have a big problem.

I have one server NT with more folder
At Night, i backup a folder in a type, but at 12am i launch a .bat file that xcopy the folder in my local computer.

When .bat file start, copy some file in my computer, but when the procedure have to copy one file with much character (more 255 character) or the path is more 255 character, the procedure crash.
The .bat file start from Win2000 Pro

Why??
Thanks
Bye

P.S.: Sorry for my English
 
Because there is a limit the the number of chars you can use with a straight copy.
Post you bat file, we can have a look.

Marc
If 'something' 'somewhere' gives 'some' error, expect random guesses or no replies at all. Please specify details.
Free Tip: The F1 Key does NOT destroy your PC!
 
XCOPY \\orton_ut\i\*.* C:\I_LOCALE /s /y /d


thanks
 
Have a go with more options:

xcopy \\orton_ut\i\*.* /i/d/f/h/r/k/s/e/v C:\I_LOCALE

If your problem remains, you will need to shorten the names.
 
ok, but i do not have understand because if i copy the file manually the problem there isn't, but if i launch the .bat file all crash.

Thanks for your help.

Bye
 
Does it work now?
If not, what else in in the bat file?
 
Hi Gianricus,

I am not sure what files you have in you a.bat file.

I have found several programs that have crashed on me as a result of a simple little MOVE command. For some reason 2000 do not want to respond to the move command in a bat file or in an exe file. The programs that have had move in them stop and lock up because a file is missing. However the MOVE command works fine from a prompt. ??? This is a puzzle as to why. So, I would think that xcopy might behave in the same way???

My solution:
This was a little bit of a pain but I changed all the move commands copy and then del. I had to copy all the files to the location I wanted and then go back in and delete the files.

I hope this helps you.

Deltabeta

 
xcopy works just fine on 2000. Besides, the copy itself is not his problem, the full path+file-lenght is.
 
It do noto work now.
i don't know.
I haven't any solution.

But if the limit is 255 character, when win 2000 manage the file??
Simulate something??

If you have one little software for my solution, send me it.
Thanks for your help
 
What is the "crash" ? What error do you get?

What else is in the BAT file?
How do you launch it?

We can only post possible fixes if you give accurate information.

Marc
If 'something' 'somewhere' gives 'some' error, expect random guesses or no replies at all. Please specify details.
Free Tip: The F1 Key does NOT destroy your PC!
 
Ok, this is my bat:

XCOPY \\orton_ut\i\*.* C:\I_LOCALE /s /y /d
rem XCOPY \\orton_ut\H\*.* C:\H_LOCALE /s /y /d
XCOPY \\srvbaan\commesse\*.* C:\COMMESSE_LOCALE /s /y /d
XCOPY \\orton\common\*.* C:\COMMON_LOCALE /s /y /d

****
I launch that with a planned operation.
I do not recive any error, the black screen(Dos) it close!!!!!

Ok???





 
Just to see if any errors appear, copy and paste this into a test batchfile and run it.
The pauses will allow you to see what happens in between steps

@echo on
@echo.
@echo. Press any key to start the backup step 1.
@echo.
@pause>nul
xcopy \\orton_ut\i\*.* /i/d/f/h/r/k/s/e/v C:\I_LOCALE
@echo. Press any key to continue with step 2.
@echo.
@pause>nul
xcopy \\srvbaan\commesse\*.* /i/d/f/h/r/k/s/e/v C:\COMMESSE_LOCALE
@echo. Press any key to continue with step 3.
@echo.
@pause>nul
xcopy \\orton\common\*.* /i/d/f/h/r/k/s/e/v C:\COMMON_LOCALE
@echo. Press any key to finish.
@echo.
@pause>nul


What are the results?
 
thanks, today i test the batch file and i communicate the result.

Bye
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top