On Sun, 3 Jun 2012 10:30:43 +0200, "Klaus Meinhard" <
K_Mei...@gmx.de> wrote:
>Don't forget to turn it back on :-) From the help file:
>
>For example, to disable all features except alias expansion while you
>are processing a text file containing special characters:
>
> setdos /x-35678
> ... [perform text processing here]
> setdos /x0
>
>A SETLOCAL command will save the current SETDOS /X values for ENDLOCAL
>to restore.
No. I don't need to since 4NT (the wrapper) would be terminated when PROG.EXE terminates and SETDOS
doesn't affect my other 4NT instances.
>Nested variable expansion. Why would you have it as default? All these
>switches are meant to be turned off only if really needed.
It messes with my old batch files.
>I don't know if I get this right - you want to append a backslash and
>an asterisk to a directory name, meaning all files in that dir? Just
>add them inside the double quotes.
Yes, when the file name is a subdirectory.
Adding it is the problem because some file names contains "&", "%", single-quote, and double-quote.
The file name is generated by PROG2.EXE via "$file$" macro, so it's fixed prior passing it to 4NT
command line.
Variable function (i.e.: %@UNQUOTE) would not work due to SETDOS /X-3.
And SETDOS /X-3 is needed to prevent 4NT from trying to expand variable in the file name.
>It might get bulky for a command line. But asmall batch or alias
>should do the trick.
That is, if I could solve this problem.