dimmergeek
asked on
Copy file contents from Notebad to WordPad
I have a text file that has some hidden characters which show up in WordPad, but not in notepad.
When I try to execute a script on my server with this file, it errors out because the line feeds aren't there.
How can I write a batch file which opens the text file and copies all contents, then writes those contents to a WordPad document?
When I try to execute a script on my server with this file, it errors out because the line feeds aren't there.
How can I write a batch file which opens the text file and copies all contents, then writes those contents to a WordPad document?
ASKER
I do not know VBS.
Can you help with the code?
Can you help with the code?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
what do you mean by 'wordpad file'?
they both open txt files
Just open it with wordpad instead of notepad and hit save, so it will keep the wordpad formatting
they both open txt files
Just open it with wordpad instead of notepad and hit save, so it will keep the wordpad formatting
I would suggest some small piece of software (it's more or less simple to do in VB or C) for that.
Simple version:
That way any unwanted characters will be stripped away.