A Windows XP help forum. PCbanter

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.

Go Back   Home » PCbanter forum » Microsoft Windows XP » New Users to Windows XP
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Batch files query



 
 
Thread Tools Display Modes
  #1  
Old June 17th 05, 03:55 PM
Bill Ridgeway
external usenet poster
 
Posts: n/a
Default 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  
Old June 17th 05, 05:41 PM
Byte
external usenet poster
 
Posts: n/a
Default

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  
Old June 17th 05, 05:59 PM
usasma
external usenet poster
 
Posts: n/a
Default

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

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






All times are GMT +1. The time now is 03:17 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.