I'm working on a batch file that alters the contents of a couple of text files as part of its operation. I use the "Fedit" utility (picked it up from Bashrat's Driver Packs) to edit the text.
I'm having a problem editing a couple of lines of text that contain escape characters. I do not know if there's an easy way round this, but since my batch file expertise is far more limited than some people's around here I thought I'd try begging!
Here is the pertient part of the text file that will be edited:
... %CD%\FILES\ROBOCOPY "%FOLDER%" "%UWXPCD%" *.* /E %RS% ...
Here is an example of the type of batch file operation that is causing me hassle:
FEDIT -ADD -ONCE -F %BTS%\textfile.cmd -A "%CD%\FILES\ROBOCOPY "%FOLDER%" "%UWXPCD%" *.* /E %RS%" -L "%RUNFROM%\FILES\ROBOCOPY "%FOLDER%" "%UWXPCD%" *.* /E %RS%"
The syntax of Fedit expects:
FEDIT -ADD -ONCE -F <filename> -A "<line of text>" - L "<line of text>"
The operation should result in the text following -L to be added directly underneath the line following -A
The problem appears to be the prescence of % and " in the command line. I've tried removing the extra quotes, using /" and /% but nothing works correctly.
Does anyone have a way around this?
Thank you,
Andy
This post has been edited by Fencer128: 15 September 2005 - 08:55 AM

Sign In
Register
Help


MultiQuote



Report