Thanks Steve for the tip and thanks Charles for the SafeChars plugin.
I have now tried with the %_pct pseudo variable from the SafeChars plugin with the following results:
[
[email protected]]
[C:\Documents and Settings\John\My Documents\Data]
Wed 10:42>locns "select 123456789 mod 1000000"...