Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#1615 Can't use %userprofile% for output

1.1
pending
nobody
None
works-for-me
5
2014-04-07
2014-02-10
Justin Rasmussen
No

version 1.1.7 build 17

64 bit windows 8.1 enterprise

I can't use %userprofile% as an output option. From old tickets it looks like this problem has popped up before and been resolved. apparently it is back.

Discussion

  • Robin Krom
    Robin Krom
    2014-02-11

    Hello,

    We don't support the commandline format for variables, as they limit the possibilities.

    You need to use ${ before and } after the variable you want to use.
    So with userprofile it should be: ${userprofile}

    This should be explained in the output settings, if you press the question mark. I think we could be clearer in the help, although we want to keep the information in there simple for normal users.

    Let us know if you have any more issues.

    Best wishes,
    Robin

     
  • Robin Krom
    Robin Krom
    2014-02-17

    • status: open --> pending
    • Resolution: none --> works-for-me
     
  • Robin Krom
    Robin Krom
    2014-02-17

    Placing this ticket on pending, as no feedback is given.

     
  • mirza
    mirza
    2014-04-04

    Same problem here.

    Win7-Enterprise-x64
    Greenshot 1.1.8.35

    In my "greenshot-fixed.ini" I would like to set the output path to:
    OutputFilePath=${userprofile}\Pictures\Greenshot
    or dos-like:
    OutputFilePath=%userprofile%\Pictures\Greenshot

    but what happens is that Greenshot creates the folder-tree to C:\Pictures\Greenshot

    The only reason why I try to manipulate the output path is because Greenshot uses by default the path: C:\Users\%username%\Desktop

    I think is not nice to pollute users Desktop with screenshots...

    If you could set the default output path to C:\Users\%username%\Pictures\Greenshot
    or similar, that would be nice and I wouldn't have to manipulate the output path.

    C:\ is not good because of permissions and ...\Desktop because of the pollution.

    Thanks guys, great job and keep going!

     
    Attachments
  • Robin Krom
    Robin Krom
    2014-04-05

    Hi,

    Could it be that the environment variable userprofile is not set to c:\users\username? Please check the value on the command line, maybe it's just c:\

    Greenshot resolves these ${} values via the enviroment, so it is not different from what you would get if you echo the %userprofile% in a command shell.

    Best wishes,
    Robin

     
  • mirza
    mirza
    2014-04-07

    Hi
    No my env variable is set correct as you can see in the attached picture.
    I tried also C:\Users\${username}\Pictures\Greenshot but it didn't work either.