|Sorry for my delayed response and thank you for your prompt response. My security team is unwilling to install Qbasic on my computer at work. Currently, I have access to Batch files and Active Scripting through a Scheduler application.|
Trying to get the .txt file to open, reformat (wrap after 94 characters), save file with new name, and close.
This is the closest I have found so far from http://www.computing.net/answers/pr...
@echo off>newname.txt & setlocal enabledelayedexpansion
for /f "tokens=*" %%a in (%1) do set x=!x!%%a
>>newname.txt echo %x:~0,94%
if "%x%" neq "" goto :10
:: end batch
taskkill /f /im notepad.exe
This will open the file, modify the contents in the file, save file as newname.txt, and close. Here are the contents that export:
Any thoughts on what to do to wrap the contents in my 1st file and save it with a new name using active scripting or batch files only?
Thanks again for your help.