Discussion:
getting: File not found with XCOPY
(too old to reply)
Bobby
2010-02-08 20:21:10 UTC
Permalink
Hi!
I am using xcopy to copy a directory. I am getting a File not found
because of the name of the directory is compose of a character with a
french accent! Can this be resolved without renaming the directory?
Thanks ahead!
A***@NOT.AT.Arargh.com
2010-02-08 20:53:22 UTC
Permalink
Post by Bobby
Hi!
I am using xcopy to copy a directory. I am getting a File not found
because of the name of the directory is compose of a character with a
french accent! Can this be resolved without renaming the directory?
Thanks ahead!
Try "Quoting" the name
--
ArarghMail002 at [drop the 'http://www.' from ->] http://www.arargh.com
BCET Basic Compiler Page: http://www.arargh.com/basic/index.html

To reply by email, remove the extra stuff from the reply address.
Bobby
2010-02-08 20:59:54 UTC
Permalink
Post by A***@NOT.AT.Arargh.com
Post by Bobby
Hi!
I am using xcopy to copy a directory. I am getting a File not found
because of the name of the directory is compose of a character with a
french accent! Can this be resolved without renaming the directory?
Thanks ahead!
Try "Quoting" the name
--
ArarghMail002 at [drop the 'http://www.'from ->]http://www.arargh.com
BCET Basic Compiler Page:http://www.arargh.com/basic/index.html
To reply by email, remove the extra stuff from the reply address.
I did try it and I still get the same answer: File not found. The
character display after the message is:
File not found - Imp⌠tRapide

You see the funny character after the Imp! This is way it is saying
that the directory is not found.
Tim Meddick
2010-02-08 21:02:39 UTC
Permalink
Yes, if a file or dir has been named with a "non-standard" character then, it will be
assigned a different "short name" (or DOS-compatible 8.3 format name).

Find out the short name of your dir by using the "dir" command with the [/x] switch
e.g. :

dir /x "x:\parent_dir"

..using the "/x" switch will list all the short names (where they exist) for dirs and
files.

Then you can use the short name which will be compatible with XCOPY.



P.S. You can change and specify your own short name for any file or folder by using
the command :

fsutil file setshortname "My long file name.txt" MYSHORT.TXT

(*nb - you can specify less than 8 chars for the new short name, but no more)

==

Cheers, Tim Meddick, Peckham, London. :-)
Post by Bobby
Hi!
I am using xcopy to copy a directory. I am getting a File not found
because of the name of the directory is compose of a character with a
french accent! Can this be resolved without renaming the directory?
Thanks ahead!
Bobby
2010-02-08 22:46:13 UTC
Permalink
Post by Tim Meddick
Yes, if a file or dir has been named with a "non-standard" character then, it will be
assigned a different "short name" (or DOS-compatible 8.3 format name).
Find out the short name of your dir by using the "dir" command with the [/x] switch
dir /x "x:\parent_dir"
..using the "/x" switch will list all the short names (where they exist) for dirs and
files.
Then you can use the short name which will be compatible with XCOPY.
P.S. You can change and specify your own short name for any file or folder by using
fsutil file setshortname "My long file name.txt"  MYSHORT.TXT
(*nb - you can specify less than 8 chars for the new short name, but no more)
==
Cheers,    Tim Meddick,    Peckham, London.    :-)
Post by Bobby
Hi!
I am using xcopy to copy a directory. I am getting a File not found
because of the name of the directory is compose of a character with a
french accent! Can this be resolved without renaming the directory?
Thanks ahead!- Hide quoted text -
- Show quoted text -
Tim, you made my day!
Thank's!
Tim Meddick
2010-02-09 19:54:58 UTC
Permalink
I am sincerely happy I could be of some help...

==

Cheers, Tim Meddick, Peckham, London. :-)
Post by Bobby
Tim, you made my day!
Thank's!
Loading...