2

When I typed this command in cmd.exe:
E:\mywamp\redis-2.8.19\redis-server.exe --maxheap 512mb

it ran successfully.

I want to create a windows shortcut to start redis quickly. So I created a shortcut in windows and filled the target input with the content above. But when I double click the shortcut, it just disappears. It seemed the parameter of --maxheap 512mb is not passed to the program of redis-server.exe.
the configuration of my shotcut
I have tried to use quotation marks to enclose the target string, but the problem is still here.

mort
  • 12,988
  • 14
  • 52
  • 97
yunnysunny
  • 183
  • 1
  • 15
  • That should work. I have several shortcuts like that where i have the input flags in the target field. Could you try with only one "dash"? – jimmy May 31 '16 at 06:12
  • 2
    Might be an oddity with this particular executable. The quick workaround is to create a batch file, and point the shortcut at the batch file. – Harry Johnston Jun 01 '16 at 00:31
  • Thansk to @HarryJohnston , I think the solution you have given is good and resolving my problem. – yunnysunny Dec 09 '16 at 02:38

1 Answers1

-1

You should only encapsulate the path to the file in quotation:

"E:\mywamp\redis-2.8.19\redis-server.exe" --maxheap 512mb

Laskoran
  • 44
  • 3