If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Batch files query
I have a batch file which copies key folders and files between hard disks -
xcopy c:\progra~1\*.* /s d:\progra~1\progra~1\ It would seem that although it will accept only truncated folder and file names (e.g. progra~1) for the source, sub folder and file names are written to the target drive full length. Am I right in thinking that source names have to be written in the truncated form (after all it is, basically a DOS command)? if not how can this be done? Thanks. Bill Ridgeway Computer Solutions |
Ads |
#2
|
|||
|
|||
Open below URL and scroll down to "Long Filenames at the Command Prompt".
File Names in Windows XP. Hope this helps. http://www.microsoft.com/resources/d...c_fil_rbrx.asp Windows XP DOS Commands (click on Xcopy) http://www.fsref.com/pr/dosxp.htm -- Some days you're the windshield, some days you're the bug. "Bill Ridgeway" wrote: I have a batch file which copies key folders and files between hard disks - xcopy c:\progra~1\*.* /s d:\progra~1\progra~1\ It would seem that although it will accept only truncated folder and file names (e.g. progra~1) for the source, sub folder and file names are written to the target drive full length. Am I right in thinking that source names have to be written in the truncated form (after all it is, basically a DOS command)? if not how can this be done? Thanks. Bill Ridgeway Computer Solutions |
#3
|
|||
|
|||
Using XPPro and the Command Prompt I was able to use xcopy to copy long
filenames and their short equivalent to another directory while preserving the information for both. So, I presume that it doesn't matter which you use - and that both will be preserved during the operation. You can try this yourself by using the dir /x command to monitor the process. "Bill Ridgeway" wrote: I have a batch file which copies key folders and files between hard disks - xcopy c:\progra~1\*.* /s d:\progra~1\progra~1\ It would seem that although it will accept only truncated folder and file names (e.g. progra~1) for the source, sub folder and file names are written to the target drive full length. Am I right in thinking that source names have to be written in the truncated form (after all it is, basically a DOS command)? if not how can this be done? Thanks. Bill Ridgeway Computer Solutions |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Windows XP and DOS commands | Lexus | General XP issues or comments | 13 | April 28th 05 11:02 AM |
NTFS - CHKDSK - Corrupt Files - Large Drives | Ted | Windows XP Help and Support | 0 | March 26th 05 06:43 PM |
XP Pro: Won't Change Read Only Property | clintonG | General XP issues or comments | 10 | March 23rd 05 12:19 AM |
How to recover offline syncronized files | Fazgood | General XP issues or comments | 6 | November 25th 04 03:32 PM |
Newer files written to a shared folder are unaccesable using Windows Explorer | Annonymous Coward | Networking and the Internet with Windows XP | 5 | November 11th 04 10:35 AM |