I have list of files like first.js#19 edit, traval.jsp#233 edit, run.css#25 edit. I want to remove part from #, I just want file name ie first.js, traval.jsp, run.css How can do it using batch programming. Please share your code. Thanks for help
Join the Stack Overflow Community
Stack Overflow is a community of 6.8 million programmers, just like you, helping each other.
Join them; it only takes a minute:
Sign up
Join them; it only takes a minute:
try:
this doesn't work, if the first |
|||
|
Try this:
And that should work. Not sure about spaces, but your example didn't include any. Mona |
|||
|
Try this code (assuming that you the batch script is located in the same directory as the file):
Hope this helps. |
|||||||||
|
You can do that directly from the command line:
This works as long as the file names are placed in individual lines of the text file. If you want to make a Batch file with this line, double the percents. |
|||
|