Reputation: 1165
I need to copy some files from one folder to another using batch file.
The source folder has a registered symbol ( R with a circle around it) in its name. I dont have the rights to rename the folder but I need to trace to the source folder and copy the files in it.
I tried to use the characters . ? and * which works when I directly run it on command prompt. But when I use it in the batch file, it searches for the file with that character in the name
Please let me know how I can reproduce the registered symbol using keyboard and how I can use wildcards to find the folder name.
Thanks
Upvotes: 1
Views: 7073
Reputation: 67256
The ® (Registered Mark) is the character number 174 (at least, in Lucida console, the standard font in Windows). You may directly enter it via the keyboard with Alt-174 (in numeric keypad) keystrokes. If this not works, you may copy if from the Character Map accessory and then paste it in any place you wish.
C:\Documents and Settings\Antonio
>echo Character pasted from Character Map: ®
Character pasted from Character Map: ®
Upvotes: 1
Reputation: 30215
It sounds like you have quotation marks around the file name in your batch file. Remove the quotation marks, and it should then expand properly.
Also, you should modify your question to show exactly what your copy command looks like in your batch file. It would significantly help myself and others to determine a solution.
Upvotes: 4