LOG_MESSAGE - Ignore escape characters
veddycent
Global Mapper User
Hi all,
I'm writing %LAYER_DIR% to a user set log file (SET_LOG_FILE USER_FILENAME =%LOG_FILE_URL% APPEND_TO_FILE=YES) but the new line escape character \n in %LAYER_DIR% is adding a new line, any way to stop this?
I've tried FORMULA="replace( %LAYER_DIR%', '\n', '/n' )" but that doesn't work.
Any help would be much appreciated
I'm writing %LAYER_DIR% to a user set log file (SET_LOG_FILE USER_FILENAME =%LOG_FILE_URL% APPEND_TO_FILE=YES) but the new line escape character \n in %LAYER_DIR% is adding a new line, any way to stop this?
I've tried FORMULA="replace( %LAYER_DIR%', '\n', '/n' )" but that doesn't work.
Any help would be much appreciated
Tagged:
Answers
-
Hello,
Can you post the exact text that is going into the LOG_MESSAGE command? This sounds like something we fixed a while back. What version of Global Mapper are you using?
For example,LOG_MESSAGE c:\new_folder\file.txt
does not produce a new line in the log file.
Cheers,
Bob -
Hi Bob,
It looks to be my version as the above didn't work.
GM v19.1.1 (b091718)(680)
Thanks
V
Categories
- 13K All Categories
- 5.8K Features Discussion
- 350 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 652 GM Script Language
- 56 User Scripts
- 115 GPS Features
- 421 Projection Questions
- 835 Raster Data
- 1.4K Vector Data
- 6.7K Support
- 181 Announcement and News
- 939 Bug Report
- 562 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 579 Other Discussion
- 132 GIS Data Sources
- 27 Global Mapper Showcase
- 244 How I use Global Mapper
- 110 Global Mapper Forum Website

