Home | Reviews | GUIpedia | Forum | Fun500
Jason | XCOPY problemsXCOPY doesn't seem to copy long file names in DOS 7.1, anyone know an alternative or a solution? | 2010-07-16 | 1:59 AM |
Brandon | Re:XCOPY problemsWell the obvious solution would be to not use long file names. | 2010-07-16 | 9:09 AM |
Jason | Re:XCOPY problemsLFN is a special feature, i wouldnt give it up because xcopy wasnt written properly.
i thought you didnt want to talk to me | 2010-07-16 | 10:33 AM |
Todd | Re:XCOPY problemsCopy this into a batch file named "tcopy.bat" and see if it works (requires LFNDOS tools):
lcopy %1 %2 for /f %%f IN ('ldir /ad /b %1') do ( if not exist %2\%%f lmd %2\%%f tcopy.bat %%f\%1 %2\%%f\ )
Should work like this:
tcopy c:\dir1\*.* c:\dir2\ | 2010-07-16 | 1:03 PM |
Todd | Re:XCOPY problemsThanks! Yes it should copy sub-directories. | 2010-07-16 | 1:29 PM |
Todd | Re:XCOPY problemsNo I mean "lcopy" which works to copy long-filenames.
http://lfntools.sourceforge.net/
If you don't want to use LFN Tools, then just remove the "l" before "lcopy", "ldir", and "lmd". | 2010-07-16 | 1:52 PM |
Jason | Re:XCOPY problemsi have a few problems. after copying the screen fills up with \%f\\%f\\ .....
how would you copy subdirs? | 2010-07-16 | 1:53 PM |
Jason | Re:XCOPY problemsi mean it doesnt copy subdirs | 2010-07-16 | 2:15 PM |
Todd | Re:XCOPY problemsThe algorithm is pretty simple. Create a function to copy all files then list directories. For each directory, call the function again for that directory (recursion). | 2010-07-16 | 2:22 PM |
Jason | Re:XCOPY problemsi dont know if you tested but on this ldir /ad i imagine that the /ad means directories, in this file it means display hidden files | 2010-07-16 | 2:30 PM |
Todd | Re:XCOPY problemsI assumed they were similar but I wrote the batch file on XP so I can't run those DOS programs anyway. | 2010-07-16 | 2:32 PM |
Jason | Re:XCOPY problemshmm, i guess i gotta go on googling? | 2010-07-16 | 2:33 PM |
Todd | Re:XCOPY problemsOr better yet, write a DOS program to do it. It shouldn't be too hard. | 2010-07-16 | 2:43 PM |
Jason | Re:XCOPY problems SOLVEDafter many minutes of googling, i found a program called XCLONE :D .... D:
it doesnt support lfn
btw i was wondering if it copied the whole tree or just the folders in the folder?
apart from that there is nothing for dos that will work, i have looked EVERYWHERE! :\
still gotta keep looking though
EDIT: i found out that xcopy will copy lfns in windows flawlessly, whats the difference between dos?
-----------------------------------------------------------------------------------------
i must have had an old version theres a /S (subdir) thingy | 2010-07-16 | 2:45 PM |
Other
2021 Brandon Cornell