Menu

gsar - replace string includes colon

Help
2008-07-09
2012-07-26
  • Ben Pollinger

    Ben Pollinger - 2008-07-09

    Hello all,

    I'd like to use gsar in a batch to process a file thus:

    gsar -sDUMMYPATH -rC:\Program Files\MyApp -f MyApp.ini

    ...but gsar says "command error, not a valid decimal number : \Pr"

    I tried enclosing the replacement in quotes but to no avail.

    Any ideas?

    thanks,
    Ben

     
    • Ben Pollinger

      Ben Pollinger - 2008-07-09

      Sorry, belatedly realised that :: is the partial answer

      gsar -sDUMMYPATH -r"C::\Program Files\MyApp" -f MyApp.ini

      BUT - quotes still don't work: I get error:

      command error, no input file name specified

      Any further thoughts?

       
      • jjcougar

        jjcougar - 2009-03-05

        The program is complaining because you have used the -f option which requires a source and output file. If you replace the -f with -o it will update in place.

         
      • Johannes Diedrich

        Try
        gsar -sDUMMYPATH -r"C:/Program Files/MyApp" -f MyApp.ini

        or
        gsar -sDUMMYPATH -r"C:\Program Files\MyApp" -f MyApp.ini

         
MongoDB Logo MongoDB