This article is a mirror article of machine translation, please click here to jump to the original article.

View: 17768|Reply: 2

[Redis] Redis method of hiding command-line windows

[Copy link]
Posted on 7/22/2016 10:48:43 AM | | | |


I started redis with the cmd command:



If you close the window, Redis stops serving!! But what if I don't want to show this window???


The solution is as follows:

Create a new createredis.bat script as follows (under the same directory as redis):



Then create a new VBS script, OpenRedis.vbs, as follows:



Remember to modify your own redis path!!!! Finally, click on openredis.vbs!!! Successful !!

Finally telnet, then open the task manager and find that the process already exists!!


Script file download:

Tourists, if you want to see the hidden content of this post, pleaseReply







Previous:C# creates a date folder
Next:[StackExchange.Redis.ServerEndPoint]' violates the constraint of type paramet...
 Landlord| Posted on 7/22/2016 10:50:55 AM |
Method 1: Program call, the code is as follows

ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.FileName = "wscrip{filter}t.exe";
startInfo.Arguments = "F:\\redis\\workspace\\openredis.vbs";
Process.Start(startInfo);

Method 2: Set the power on to start automatically

In the registry key

HKEY_CURRENT_USER \Software \Microsoft \Windows \CurrentVersion \Run: Create a new string value openredis and add the vbs path as shown in the figure below to automatically start Redis when you boot up.


The above two, there is no test, everyone tests it themselves!

Posted on 3/2/2018 10:06:18 AM |
Very good and powerful
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com