views:

118

answers:

0
+1  Q: 

xcopy at logon

Our client are having problems when logging in on their WinXP (fully updated) computers. We run a batch script that copies files and folders using xcopy.

No files are copied, but folders are created. If I run the xcopy manually then there is no problems.

One of the source folders have non-english characters in its name. After I removed those, both batch and manually worked fine.

So this must be a case of character-set issue. Any idea how do fix it so we can keep the non-english characters in folder name ?

Update: Why is batch not considered a programming language here ?

Update 2: I found a way to fix it. Use the old DOS names, which are limited to 6 characters + ~[number] = 8 in total. Replace any name which contains non-english characters with the old DOS name (8dot3) and it works perfectly.

To show the old DOS names can you use this command: dir /x [path]