Batch files query

B

Bill Ridgeway

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
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top