Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • As you mentioned I have file names with extensions and I want the user name to be appended after the file name but before the file extension. But even when I add enough ??, it didn't take the full name. When I did it for (F0#CGDBANG000947532#.eps) I recd like (0#CGDBANG000947532#logesh.eps) without the First letter (F). Pls let me know where I go wrong..? Commented May 27, 2014 at 7:07
  • That's strange. The exact command as the one in my post (except the target path) worked perfectly well for me, and I tried it with file names like yours – no lost characters, the new names were same with the user name added. I tried changing the first mask, *, to F* – thought something weird could be happening if the first letter was specified explicitly, but no, there was nothing wrong again. I'm puzzled, but I do have suspicion that something might be going on after the copying or perhaps you mistakenly copied files that did not have the first F in their names? Commented May 27, 2014 at 8:50
  • Thanks a lot and it works fine. I need little more help in the same situation, like Black&white files should go to B/W folder and Colour files should copy to Colour Folder. From the file name we can distinguish B/W & Colour, as the 4th character of file name will C or B as per the file. Like (F0#CG or F0#BG)_ F0#CGDBANG000947532# & F0#BGDBANG000947532#... thanks a lot in advance Commented May 27, 2014 at 12:45
  • Ah, but that is a different problem now. It will be better if you create a new question for it. That'll increase your chances of getting a good suggestion. I'll be happy to take a look at it when I have time. Commented May 27, 2014 at 14:56
  • Sure I will post it... and thanks a lot for your help.. I want to learn batch script from start, where can I learn can u sugggest any..? Commented May 27, 2014 at 16:31