This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: FileGrep and FileInsertFile - adding an unwanted backslash character
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 06, 2008
08:58 AM
FileGrep and FileInsertFile - adding an unwanted backslash character
Hi,
I have a non ini file in which I have to replace some parameters. For this I use Filegrep and FileInsertFIle.
Initial VM.properties file
RETRIEVE_VIDEO_SERVER=http://70.97.166.114:8080/VMWebApp
m_strRetrVS="http://10.10.10.1:8080/VMWebApp"
After
RETRIEVE_VIDEO_SERVER=\http://10.10.10.1:8080/VMWebApp
That backslash before equal character is inserted. The m_strRetrVS variable contain only the good string "http://10.10.10.1:8080/VMWebApp".
Any ideas ?
Thanks,
Bianca
I have a non ini file in which I have to replace some parameters. For this I use Filegrep and FileInsertFIle.
filename = m_strJBossDepl ^ "\\conf\\VM.properties";
a = "RETRIEVE_VIDEO_SERVER="^m_strRetrVS;
FileGrep ( filename, "RETRIEVE_VIDEO_SERVER=", svReturnLine, nvLineNumber, RESTART );
FileInsertLine (filename, a, nvLineNumber, REPLACE);
Initial VM.properties file
RETRIEVE_VIDEO_SERVER=http://70.97.166.114:8080/VMWebApp
m_strRetrVS="http://10.10.10.1:8080/VMWebApp"
After
RETRIEVE_VIDEO_SERVER=\http://10.10.10.1:8080/VMWebApp
That backslash before equal character is inserted. The m_strRetrVS variable contain only the good string "http://10.10.10.1:8080/VMWebApp".
Any ideas ?
Thanks,
Bianca
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 06, 2008
02:55 PM
The ^ operator (used in your definition of a) assumes you're concatenating parts of a path, inserting backslashes between the pieces if there isn't already one. Perhaps use + instead?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 07, 2008
04:54 AM
RobertDickau wrote:
The ^ operator (used in your definition of a) assumes you're concatenating parts of a path, inserting backslashes between the pieces if there isn't already one. Perhaps use + instead?
Thank you 🙂
Bianca