Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Change one Path setting


3 replies to this topic

Blackdog

Blackdog
  • Full Members
  • 64 posts

Posted 01 May 2001 - 17:24

We have to have one path setting in the Autoexec.bat. We now need to change
this value. How do I replace the current value with the new one? Our current
value is \pf and needs to be changed to \rlisys\pf.

Example: Current Path = c:\winnt\system32;\pf;c:\edit
       New Path = c:\winnt\system32;\rlisys\pf;c:\edit

The documentation for ExBatchReplace seems to referring to replacing the
whole path statement. We need to just repace one of the values.



Ide Nentjes

Ide Nentjes
  • Members
  • 222 posts

Posted 02 May 2001 - 00:21

You can use the FileStrReplace function to replace a string in a file. use it to replace ;\pf;  with ;\rlisys\pf;
you can find the script under "IS5/6 samples > Search and Replace a String in a File"

Ide


Blackdog

Blackdog
  • Full Members
  • 64 posts

Posted 02 May 2001 - 16:32

I incorporated FileStrReplace and it worked Great! Thanks.